Skip to content

ci: Update GitHub Actions workflow #2

ci: Update GitHub Actions workflow

ci: Update GitHub Actions workflow #2

Workflow file for this run

name: Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install codecov pytest-cov
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb python3-tk
- name: Run tests with coverage
run: |
python -m pytest --cov=src/ --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
fail_ci_if_error: false # Don't fail if upload fails
verbose: true