Skip to content

fix: bugs

fix: bugs #17

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
name: With pytest for Python ${{ matrix.python_version }}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [ "3.10", "3.11" ]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🎵 Install poetry
run: pipx install poetry
- name: 🛠️ Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python_version }}"
cache: 'poetry'
- name: 📦 Install requirements
run: task poetry-install
- name: 🏃 Run tests
env:
PYTEST: true
run: task tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
if: ${{ matrix.python_version == '3.11' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}