Skip to content

Commit 67677ee

Browse files
committed
Add simple smoke/integration tests
1 parent 2f4da87 commit 67677ee

File tree

5 files changed

+266
-92
lines changed

5 files changed

+266
-92
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,38 @@ jobs:
3030
poetry install
3131
poetry run ruff format --check --diff .
3232
33+
tests:
34+
name: Run the integration/smoke tests
35+
runs-on: "ubuntu-latest"
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
python_version: ["3.9", "3.10", "3.11", "3.12"]
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-python@v5
44+
with:
45+
python-version: ${{ matrix.python_version }}
46+
- uses: actions/cache@v4
47+
with:
48+
path: ~/.cache/pypoetry/virtualenvs
49+
key: poetry-${{ hashFiles('poetry.lock') }}
50+
51+
- run: sudo pipx install poetry
52+
env:
53+
PIPX_BIN_DIR: /usr/bin
54+
55+
- name: Install dependencies
56+
run: poetry install
57+
58+
- name: Run the tests
59+
run: poetry run pytest -vv
60+
3361
build:
3462
name: Build the package
3563
runs-on: ubuntu-latest
64+
needs: tests
3665

3766
steps:
3867
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)