Skip to content

🔄 synced file(s) with JesperDramsch/github-files #1

🔄 synced file(s) with JesperDramsch/github-files

🔄 synced file(s) with JesperDramsch/github-files #1

# .github/workflows/python-testing.yml
name: Python Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-mock pytest-emoji
pip install -e .
- name: Run tests
run: |
pytest --cov=./ --cov-report=xml --emoji
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true