Jupyter Notebooks and Architecture Video #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
# Set up Python 3.12.5 | |
- name: Set up Python 3.12.5 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12.5 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Cache Poetry dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pypoetry | |
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-poetry- | |
- name: Update Poetry Lock File | |
run: poetry lock --no-update | |
- name: Install Dependencies | |
run: poetry install --no-interaction --no-ansi | |
# Ensure test.sh can be executed - Using absolute path | |
- name: Make test.sh Executable | |
run: chmod +x $GITHUB_WORKSPACE/.test.sh | |
# Run the test.sh script using absolute path | |
- name: Run Tests | |
run: poetry run $GITHUB_WORKSPACE/.test.sh |