Skip to content

Commit

Permalink
ci: add requests compatiblity check
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Oct 15, 2024
1 parent d69dac1 commit 20a9244
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 4 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Check Compability
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
UV_SYSTEM_PYTHON: true
jobs:
check-requests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
requests-version:
- '2.32.3'
- '2.32.2'
- '2.31.0'
- '2.30.0'
- '2.29.0'
- '2.28.2'
- '2.28.1'
- '2.28.0'
- '2.27.1'
- '2.27.0'
- '2.26.0'
- '2.25.1'
- '2.25.0'
- '2.24.0'
- '2.23.0'
- '2.22.0'
- '2.21.0'
- '2.20.1'
- '2.20.0'
- '2.19.1'
- '2.19.0'
- '2.18.4'
- '2.18.3'
- '2.18.2'
- '2.18.1'
- '2.18.0'
- '2.17.3'
- '2.17.2'
- '2.17.1'
- '2.17.0'
- '2.16.5'
- '2.16.4'
- '2.16.3'
- '2.16.2'
- '2.16.1'
- '2.16.0'
- '2.15.1'
- '2.15.0'
- '2.14.2'
- '2.14.1'
- '2.14.0'
- '2.13.0'
- '2.12.5'
- '2.12.4'
- '2.12.3'
- '2.12.2'
- '2.12.1'
- '2.12.0'
- '2.11.1'
- '2.11.0'
- '2.10.0'
- '2.9.2'
- '2.9.1'
- '2.9.0'
- '2.8.1'
- '2.8.0'
- '2.7.0'
- '2.6.2'
- '2.6.1'
- '2.6.0'
- '2.5.3'
- '2.5.2'
- '2.5.1'
- '2.5.0'
- '2.4.3'
- '2.4.2'
- '2.4.1'
- '2.4.0'
- '2.3.0'
- '2.2.1'
- '2.2.0'
- '2.1.0'
- '2.0.1'
- '2.0.0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
check-latest: true
cache: 'pip'
- run: make dev
- run: make deps
- run: uv pip install requests==${{ matrix.requests-version }}
- run: make test
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"requests>=2.31.0,<3",
"requests>=2,<3",
"packaging",
"typing-extensions"
]
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.32.2
packaging==24.1
typing-extensions==4.12.2
requests
packaging
typing-extensions

0 comments on commit 20a9244

Please sign in to comment.