publish to docker reg #27
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 test dependencies | |
| run: | | |
| source .venv/bin/activate | |
| pip install pytest | |
| pip install flask | |
| - name: Run unit tests | |
| run: | | |
| source .venv/bin/activate | |
| PYTHONPATH=src python -m pytest --color=yes test/test_sql_guard_unit.py | |
| - name: Run REST API unit tests | |
| run: | | |
| source .venv/bin/activate | |
| PYTHONPATH=src python -m pytest --color=yes test/test_rest_api_unit.py |