Skip to content

Push test coverage to coveralls.io #4

Push test coverage to coveralls.io

Push test coverage to coveralls.io #4

Workflow file for this run

name: Tests
# Configure the events that are going to trigger tha automated update of the mirror
on:
push:
branches: [master]
pull_request:
# Configure what will be updated
jobs:
# set the job name
unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests
run: pytest tests
- name: Upload coverage to Coveralls
if: matrix.python-version == '3.12'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
e2e-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
# - "3.13"
# - "3.12"
# - "3.11"
# - "3.10"
- "3.9"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests
run: pytest e2e/ --durations=50