Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit 2d6b9f0

Browse files
ci: move pytest to ci.yml (#158)
1 parent fb3d40c commit 2d6b9f0

File tree

2 files changed

+20
-43
lines changed

2 files changed

+20
-43
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,26 @@ jobs:
6363
run: |
6464
python -u ./scripts/build.py
6565
66+
- name: Test with pytest
67+
id: test
68+
shell: bash
69+
run: |
70+
python -m pytest \
71+
-rxXs \
72+
--tb=native \
73+
--verbose \
74+
--cov=gsms \
75+
tests
76+
77+
- name: Upload coverage
78+
# any except cancelled or skipped
79+
if: always() && (steps.test.outcome == 'success' || steps.test.outcome == 'failure')
80+
uses: codecov/codecov-action@v4
81+
with:
82+
fail_ci_if_error: true
83+
token: ${{ secrets.CODECOV_TOKEN }}
84+
verbose: true
85+
6686
- name: Upload Artifacts
6787
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
6888
uses: actions/upload-artifact@v4

.github/workflows/python-tests.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)