Skip to content
name: CalSciPy Code Coverage
on:
push:
branches: [ "master", "staging"]
pull_request:
branches: [ "master", "development", "staging"]
jobs:
build:
strategy:
matrix:
os: [windows-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r .github/workflows/requirements.txt
python -m pip install -e .
- name: Assess coverage
run: |
coverage run -m pytest
coverage report
coverage json
coverage lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./coverage.lcov"