Skip to content

Commit

Permalink
move to separate workflow with tests run once
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Mar 13, 2024
1 parent d07b0e3 commit 56e8750
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Workflow for Codecov conjugate
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install . pytest pytest-cov pytest-mpl pypika
- name: Run tests and collect coverage
run: pytest --mpl --mpl-baseline-path=tests/example-plots --cov conjugate --cov-report=xml --cov-report=term-missing tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: $${ secrets.CODECOV_TOKEN }}
slug: wd60622/conjugate
fail_ci_if_error: false
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,3 @@ jobs:
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ matrix.python-version }}
slug: wd60622/conjugate
fail_ci_if_error: false

0 comments on commit 56e8750

Please sign in to comment.