Skip to content

Commit d4998bb

Browse files
author
kwaak
committed
feat: add import tests workflow for multiple Python versions in CI
1 parent 84df2ad commit d4998bb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/unit_tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,29 @@ jobs:
7373
name: codecov-umbrella
7474
fail_ci_if_error: true
7575
verbose: true
76+
77+
import-test:
78+
runs-on: ubuntu-latest
79+
strategy:
80+
matrix:
81+
python-version: ["3.10", "3.11", "3.12"]
82+
steps:
83+
- uses: actions/checkout@v4.2.2
84+
85+
- name: Install uv
86+
uses: astral-sh/setup-uv@v5.3.1
87+
with:
88+
version: "0.5.21"
89+
enable-cache: true
90+
91+
- name: "Set up Python ${{ matrix.python-version }}"
92+
uses: actions/setup-python@v5.4.0
93+
with:
94+
python-version: ${{ matrix.python-version }}
95+
96+
- name: Install the core package only
97+
run: uv sync
98+
99+
- name: Run import tests
100+
run: |
101+
uv run pytest tests/test_imports.py

0 commit comments

Comments
 (0)