Skip to content

Commit 44baa04

Browse files
authored
Merge pull request #372 from alejoe91/codecov-daily
Run codecov daily and extend OS and python versions
2 parents c7901ed + b14c547 commit 44baa04

File tree

3 files changed

+41
-10
lines changed

3 files changed

+41
-10
lines changed

.github/workflows/full_tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test on Ubuntu
1+
name: Complete tests
22

33
on:
44
pull_request:
@@ -12,8 +12,13 @@ on:
1212
jobs:
1313
build-and-test:
1414

15-
runs-on: ubuntu-latest
16-
15+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.9", "3.14"] # Lower and higher versions we support
21+
os: [macos-latest, windows-latest, ubuntu-latest]
1722
steps:
1823
- uses: actions/checkout@v4
1924
- name: Set up Python
@@ -26,9 +31,4 @@ jobs:
2631
pip install .[test]
2732
- name: Pytest
2833
run: |
29-
pytest --cov=probeinterface --cov-report xml:./coverage.xml
30-
- uses: codecov/codecov-action@v4
31-
with:
32-
token: ${{ secrets.CODECOV_TOKEN }}
33-
fail_ci_if_error: true
34-
file: ./coverage.xml
34+
pytest -v
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test with Codecov
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 12 * * *" # Daily at noon UTC
7+
8+
9+
jobs:
10+
build-and-test:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
- name: Install package
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install .[test]
24+
- name: Pytest
25+
run: |
26+
pytest --cov=probeinterface --cov-report xml:./coverage.xml
27+
- uses: codecov/codecov-action@v4
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
fail_ci_if_error: true
31+
file: ./coverage.xml

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88

99
description = "Python package to handle probe layout, geometry and wiring to device."
1010
readme = "README.md"
11-
requires-python = ">=3.8"
11+
requires-python = ">=3.9"
1212
classifiers = [
1313
"Programming Language :: Python :: 3",
1414
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)