Skip to content

Commit 65502b6

Browse files
committed
move full CI test matrix to release
1 parent acefd42 commit 65502b6

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: [ubuntu-latest, windows-latest, macos-latest]
16-
python-version: [ "3.11", "3.12", "3.13"]
15+
os: [ubuntu-latest]
16+
python-version: [ "3.11"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,63 @@ on:
66
workflow_dispatch:
77

88

9-
109
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: [ "3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Cache pip dependencies
27+
uses: actions/cache@v3
28+
with:
29+
path: ~/.cache/pip
30+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}
31+
restore-keys: |
32+
${{ runner.os }}-pip-
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -e .
38+
pip install -r requirements-dev.txt
39+
40+
# - name: Lint with ruff
41+
# run: |
42+
# ruff check .
43+
# ruff format --check .
44+
45+
- name: Test with pytest
46+
run: |
47+
pytest --cov=iglu_python --cov-report=xml --cov-report=term-missing --junitxml=junit.xml -o junit_family=legacy
48+
49+
- name: Upload test results to Codecov
50+
if: ${{ !cancelled() }}
51+
uses: codecov/test-results-action@v1
52+
with:
53+
token: ${{ secrets.CODECOV_TOKEN }}
54+
55+
- name: Upload coverage to Codecov
56+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
57+
uses: codecov/codecov-action@v5
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
file: ./coverage.xml
61+
fail_ci_if_error: true
62+
1163
publish:
1264
runs-on: ubuntu-latest
65+
needs: test
1366

1467
steps:
1568
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "iglu_python"
7-
version = "0.1.3"
7+
version = "0.1.4"
88
description = "Python implementation of the iglu package for continuous glucose monitoring data analysis"
99
readme = "README.md"
1010
requires-python = ">=3.11"

0 commit comments

Comments
 (0)