Skip to content

Bump actions/upload-artifact from 3 to 4 #34

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #34

Workflow file for this run

name: Coverage
on:
pull_request:
push:
branches:
- master
jobs:
coverage:
name: Check coverage
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: poetry
- name: Install requirements
run: poetry install
- name: Run tests
run: poetry run coverage run -m pytest --cov=django_fsm --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4