Skip to content

Commit

Permalink
Merge pull request #71 from yaal-coop/pr-56-downstream-tests
Browse files Browse the repository at this point in the history
downstream projects tests with GHA
  • Loading branch information
azmeuk authored Aug 29, 2024
2 parents eb65cd2 + ec0ceb7 commit ce5bf81
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
tests:
name: ${{ matrix.python }}
name: py${{ matrix.python }} unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -36,6 +36,46 @@ jobs:
poetry install
poetry run pytest --showlocals
downstream-tests:
name: py${{ matrix.python }} ${{ matrix.downstream }} downstream unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- '3.12'
- '3.11'
downstream:
- scim2-client
- scim2-server
- scim2-cli
steps:
- uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry --version
poetry install
- name: Checkout downstream pyproject
uses: actions/checkout@v4
with:
repository: yaal-coop/${{ matrix.downstream }}
path: ${{ matrix.downstream }}
- name: Run downstream tests
run: |
cd ${{ matrix.downstream }}
poetry install --with dev
poetry run pip install --upgrade --force ..
- name: Run downstream tests
run: |
cd ${{ matrix.downstream }}
poetry run pytest --showlocals
minversions:
name: minimum dependency versions
runs-on: ubuntu-latest
Expand Down

0 comments on commit ce5bf81

Please sign in to comment.