Skip to content

Commit 7bf7796

Browse files
committed
Update test matrix and add coveralls reporting
1 parent b25bc4b commit 7bf7796

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/test-and-lint.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
python-version: [3.7, 3.8]
10+
python-version: [3.9, 3.10, 3.11, 3.12, 3.13]
1111
os: [ubuntu-latest, windows-latest, macOS-latest]
1212

1313
steps:
@@ -19,10 +19,15 @@ jobs:
1919
- name: Install Dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install .[test]
22+
pip install .[dev]
2323
- name: Test with pytest
2424
run: |
25-
pytest image_slicer/tests/
25+
pytest tests/ --cov=image_slicer --cov-report=lcov
26+
- name: Coveralls
27+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
28+
uses: coverallsapp/github-action@v2
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
2631

2732
lint:
2833
runs-on: ubuntu-latest
@@ -32,11 +37,11 @@ jobs:
3237
- name: Set up Python
3338
uses: actions/setup-python@v2
3439
with:
35-
python-version: 3.8
40+
python-version: 3.9
3641
- name: Install Dependencies
3742
run: |
3843
python -m pip install --upgrade pip
39-
pip install .[test]
44+
pip install .[dev]
4045
- name: Lint with flake8
4146
run: |
4247
flake8 image_slicer --count --verbose --show-source --statistics

0 commit comments

Comments
 (0)