Start unit tests with pytest
#3
Workflow file for this run
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: Unit Tests | |
on: | |
pull_request: | |
branches: | |
- '**' # Matches all branch names | |
push: | |
branches: | |
- '**' # Match any branch | |
jobs: | |
pytest: | |
name: pytest | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
os: [ubuntu-latest] | |
fail-fast: False | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: '**/requirements*.txt' | |
- name: Install dependencies | |
run: | | |
python -W ignore -m pip install --upgrade pip | |
python -W ignore -m pip install . | |
python -W ignore -m pip install -r requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest -v tests/ |