Skip to content

ADD coverage to GitAction #10

ADD coverage to GitAction

ADD coverage to GitAction #10

Workflow file for this run

name: Python Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Run Python Tests and Generate Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install .
pip install -r requirements.txt
pip install pytest-cov codecov
- name: Run tests with coverage
run: pytest --cov=tests/
- name: Generate coverage report
run: codecov
- name: Push to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}