Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Check you can pip install with oldest deps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 11, 2023
1 parent 5bf9ec9 commit 5a18e69
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- 'rust/**'
- 'Cargo.toml'
- 'Cargo.lock'
dependencies:
- 'pyproject.toml'
- 'poetry.lock'
check-sampleconfig:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -616,6 +619,26 @@ jobs:

- run: cargo bench --no-run

# Sanity check that Synapse can be `pip install`ed with the oldest set of deps.
# This occasionally bites us when we use some poetry feature but forget to bump the
# poetry-core version in the build-system.
installable-with-olddeps:
needs:
- changes
- linting-done
if: ${{ needs.changes.outputs.dependencies == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7' # oldest upstream supported CPython version
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: .ci/scripts/prepare_old_deps.sh
- run: pip install .[all]
# Sanity check we can import/run Synapse
- run: python -m synapse.app.homeserver --help

# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
tests-done:
if: ${{ always() }}
Expand Down

0 comments on commit 5a18e69

Please sign in to comment.