Skip to content

Run tests with GHA

Run tests with GHA #1

Workflow file for this run

name: build & test
on:
push:
branches-ignore:
- master
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |-
pytest --cov=.
- name: Report coverage
run: |-
coverage xml
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage.xml
retention-days: 30