🎨 Renamed src to project folder #125
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: Pytest | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
name: >- | |
Pytest - Python ${{ matrix.PYTHON_VERSION }} | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { PYTHON_VERSION: '3.8' } | |
- { PYTHON_VERSION: '3.9' } | |
- { PYTHON_VERSION: '3.10' } | |
- { PYTHON_VERSION: '3.11' } | |
- { PYTHON_VERSION: '3.12' } | |
steps: | |
- name: "Checkout to repository" | |
uses: actions/checkout@v4 | |
- name: "Setup Python" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.PYTHON_VERSION }} | |
cache: 'pip' | |
allow-prereleases: true | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: "Run tests" | |
uses: pavelzw/pytest-action@v2 | |
with: | |
report-title: >- | |
Pytest - Python ${{ matrix.PYTHON_VERSION }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |