Skip to content

Commit aa53054

Browse files
committed
✅ Add pytest
1 parent b3c482d commit aa53054

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on:
2727
- ubuntu-latest
2828
- macos-latest
29-
# - windows-latest
29+
- windows-latest
3030
runs-on: ${{ matrix.runs-on }}
3131
steps:
3232
- uses: actions/checkout@v3
@@ -42,7 +42,13 @@ jobs:
4242
- name: Test for Linux and macOS
4343
if: runner.os != 'Windows'
4444
run: |
45+
pytest --cov .
4546
pre-commit run -a
47+
- name: Test for Windows
48+
if: runner.os == 'Windows'
49+
run: |
50+
pytest --cov
51+
- uses: codecov/codecov-action@v3
4652
build:
4753
needs: test
4854
strategy:

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
pre-commit
55
ptpython[ptipython]
6+
pytest-cov

0 commit comments

Comments
 (0)