Skip to content

Commit ce5bf81

Browse files
authored
Merge pull request #71 from yaal-coop/pr-56-downstream-tests
downstream projects tests with GHA
2 parents eb65cd2 + ec0ceb7 commit ce5bf81

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/tests.yaml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
tests:
15-
name: ${{ matrix.python }}
15+
name: py${{ matrix.python }} unit tests
1616
runs-on: ubuntu-latest
1717
strategy:
1818
fail-fast: false
@@ -36,6 +36,46 @@ jobs:
3636
poetry install
3737
poetry run pytest --showlocals
3838
39+
downstream-tests:
40+
name: py${{ matrix.python }} ${{ matrix.downstream }} downstream unit tests
41+
runs-on: ubuntu-latest
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
python:
46+
- '3.12'
47+
- '3.11'
48+
downstream:
49+
- scim2-client
50+
- scim2-server
51+
- scim2-cli
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Install Poetry
55+
uses: snok/install-poetry@v1
56+
- uses: actions/setup-python@v5
57+
with:
58+
python-version: ${{ matrix.python }}
59+
cache: 'poetry'
60+
- name: Install dependencies
61+
run: |
62+
poetry --version
63+
poetry install
64+
- name: Checkout downstream pyproject
65+
uses: actions/checkout@v4
66+
with:
67+
repository: yaal-coop/${{ matrix.downstream }}
68+
path: ${{ matrix.downstream }}
69+
- name: Run downstream tests
70+
run: |
71+
cd ${{ matrix.downstream }}
72+
poetry install --with dev
73+
poetry run pip install --upgrade --force ..
74+
- name: Run downstream tests
75+
run: |
76+
cd ${{ matrix.downstream }}
77+
poetry run pytest --showlocals
78+
3979
minversions:
4080
name: minimum dependency versions
4181
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)