Skip to content

Commit

Permalink
Create publish-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmschlk authored Nov 29, 2023
1 parent 81dd712 commit 3c6916d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: coverage

on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=shapiq --cov-report=xml
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: coverage.xml

0 comments on commit 3c6916d

Please sign in to comment.