From fdbd86f0f04cb79100b729b092e234b1bf15a0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Tue, 19 Dec 2023 11:57:05 -0600 Subject: [PATCH] Fix CI --- .github/workflows/test.yml | 24 +++++++++++------------- pyproject.toml | 1 + 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a6e095..1bcba51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,10 +30,14 @@ jobs: NOXPYTHON: ${{ matrix.python-version }} NOXSESSION: tests PIP_CONSTRAINT: .github/workflows/constraints.txt - SETUPTOOLS_USE_DISTUTILS: stdlib strategy: + fail-fast: false matrix: + script: ["test:integration"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + include: + - { script: "test:dependencies", python-version: "3.11" } + - { script: "typing:check", python-version: "3.11" } steps: - name: Checkout code @@ -43,27 +47,21 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Upgrade pip run: | pip install pip pip --version - - name: Install Poetry + - name: Install Hatch run: | - pipx install poetry - poetry --version - poetry self show plugins + pipx install hatch --python "python${{ matrix.python-version }}" + hatch --version - - name: Install Nox - run: | - pipx install nox - pipx inject nox nox-poetry - nox --version - - - name: Run tests + - name: Run env: TAP_HOOKDECK_API_KEY: ${{ secrets.TAP_HOOKDECK_API_KEY }} TAP_HOOKDECK_START_DATE: ${{ secrets.TAP_HOOKDECK_START_DATE }} run: | - nox + hatch run ${{ matrix.script }} diff --git a/pyproject.toml b/pyproject.toml index ce5d8a1..1a913c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,6 +108,7 @@ convention = "google" [tool.deptry.package_module_name_map] mypy = "mypy" pytest = "pytest" +tap-hookdeck = "tap_hookdeck" types-requests = "requests" [tool.deptry.per_rule_ignores]