Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 19, 2023
1 parent 38ef2c4 commit fdbd86f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fdbd86f

Please sign in to comment.