day 17 notebook part 1 + progress #27
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: Python Test Workflow | |
on: | |
push: | |
paths: | |
- 'py/**' | |
- '.github/workflows/python.yml' | |
pull_request: | |
paths: | |
- 'py/**' | |
- '.github/workflows/python.yml' | |
workflow_dispatch: | |
jobs: | |
test-py: | |
name: Test Python Solutions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: poetry install | |
working-directory: ./py | |
- name: Add 'solutions' to PYTHONPATH | |
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/solutions" >> $GITHUB_ENV | |
working-directory: ./py | |
- name: Run tests with `pytest` | |
env: | |
PYTEST_ADDOPTS: "--color=yes" | |
run: poetry run pytest -v ./tests/* | |
working-directory: ./py |