Skip to content

fix coverage: trial 1 #5

fix coverage: trial 1

fix coverage: trial 1 #5

Workflow file for this run

# This workflow will install Python dependencies, run tests and produce coveralls report.
# Inspired from https://github.com/wesselb/stheno/blob/master/.github/workflows/ci.yml
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Pre-commit
continue-on-error: true
run: |
pre-commit run --all-files
- name: Test
run: |
pytest -v --cov=polire --cov-report term-missing
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
finish:
name: Finish Coveralls
needs: test
runs-on: ubuntu-latest
steps:
- name: Finish Coveralls
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true