Skip to content

[pre-commit.ci] pre-commit autoupdate #55

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #55

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
paths:
- ".github/workflows/test.yml"
- "pyproject.toml"
- "tw_invoice/**"
- "tests/**"
pull_request:
branches: ["main"]
jobs:
test:
name: 🧪 Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: 🛒 Checkout
uses: actions/checkout@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip flit
flit install --deps develop --symlink
- name: 🧪 Test with pytest
run: |
pytest --cov=tw_invoice --cov-report=xml
- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v2