Skip to content

Commit

Permalink
updated codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisRalli committed Mar 9, 2023
1 parent 4e47d50 commit 75d91e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
Binary file modified .DS_Store
Binary file not shown.
26 changes: 8 additions & 18 deletions .github/workflows/testing_and_coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing and Coverage
name: CodeCov

on: [push]

Expand All @@ -7,9 +7,6 @@ jobs:
name: Testing and Coverage

runs-on: ubuntu-latest
#strategy:
# matrix:
# python-version: ["3.8", "3.9"]

steps:
- uses: actions/checkout@v2
Expand All @@ -21,17 +18,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install .
- name: Run tests and collect coverage
run: |
pip install codecov
pip install pytest-cov
pytest --cov=./ --cov-report=xml
pytest tests --cov=./symmer --cov-report=xml
codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.0
with:
directory: ./coverage/reports/
env_vars: OS,PYTHON
files: /home/runner/work/symmer/symmer/coverage.xml
flags: tests
- name: Generate Report
run: |
pip install coverage
pip install pytest
coverage run -m pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2

0 comments on commit 75d91e3

Please sign in to comment.