From 4709fceb886f71684279b948effe62d1d4b1d9c5 Mon Sep 17 00:00:00 2001 From: tdstein Date: Tue, 15 Oct 2024 11:00:31 -0400 Subject: [PATCH] ci: add requests compatiblity check --- .github/workflows/deps.yaml | 100 ++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deps.yaml diff --git a/.github/workflows/deps.yaml b/.github/workflows/deps.yaml new file mode 100644 index 00000000..9207ce32 --- /dev/null +++ b/.github/workflows/deps.yaml @@ -0,0 +1,100 @@ +name: Dependency Compatiblity +on: + - pull_request +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +env: + UV_SYSTEM_PYTHON: true +jobs: + lint: + 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 ensure-uv + - run: uv pip install requests==${{ matrix.requests-version }} + - run: make deps + - run: make test diff --git a/pyproject.toml b/pyproject.toml index 42d418af..84d0983a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ classifiers = [ ] dynamic = ["version"] dependencies = [ - "requests>=2.31.0,<3", + "requests>=2,<3", "packaging", "typing-extensions" ]