This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check you can
pip install
with oldest deps in CI
- Loading branch information
David Robertson
committed
May 11, 2023
1 parent
5bf9ec9
commit 5a18e69
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,9 @@ jobs: | |
- 'rust/**' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
dependencies: | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
check-sampleconfig: | ||
runs-on: ubuntu-latest | ||
|
@@ -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() }} | ||
|