make PWD env var optional #221
This file contains hidden or 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: Run Unit Tests | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # To read the repository contents (for `actions/checkout`) | |
| actions: read # Allow the use of actions like `actions/cache` | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update python and install dependencies | |
| uses: ./.github/actions/cached-requirements | |
| - name: Install project and test dependencies | |
| run: | | |
| source .venv/bin/activate | |
| pip install -r requirements.txt # Install main project dependencies | |
| pip install -r test/test.requirements.txt | |
| - name: Run unit tests | |
| run: | | |
| source .venv/bin/activate | |
| PYTHONPATH=src python -m pytest --color=yes test/*_unit.py |