Skip to content

fix: github actions

fix: github actions #5

Workflow file for this run

name: Run project tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
container:
image: python:3.12
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: ~/.local/bin/poetry install
- name: Run django tests
run: |
script/bootstrap
script/test --coverage
- name: Generate coverage xml
run: coverage xml
- name: Upload code coverage
run: |
less coverage.xml
pip install codecov
codecov