Skip to content

Feature/invoice (#24) #47

Feature/invoice (#24)

Feature/invoice (#24) #47

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.11" ]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4
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@v5
with:
python-version: "${{ matrix.python_version }}"
cache: 'poetry'
- name: 📦 Install requirements
run: task install
- name: 🏃 Run tests
env:
PYTEST: true
run: task tests
- name: 📤 Upload coverage to Codecov
if: ${{ matrix.python_version == '3.11' }}
run: |
task coverage
curl -sfSL https://codecov.io/bash | bash -