Skip to content

chore: Track tox requires with Renovate (#154) #633

chore: Track tox requires with Renovate (#154)

chore: Track tox requires with Renovate (#154) #633

Workflow file for this run

name: Test tap-canny
on:
pull_request:
branches: [main]
paths:
- tap_canny/**
- tests/**
- pyproject.toml
- tox.ini
- .github/workflows/test.yml
push:
branches: [main]
paths:
- tap_canny/**
- tests/**
- pyproject.toml
- tox.ini
- .github/workflows/test.yml
workflow_dispatch:
schedule:
# Run weekly on Monday at 12:00 PM UTC
- cron: "0 12 * * 1"
env:
FORCE_COLOR: "1"
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.5.20
# renovate: datasource=pypi depName=tox
TOX_VERSION: 4.23.2
# renovate: datasource=pypi depName=tox-uv
TOX_UV_VERSION: 1.17.0
jobs:
tests:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
include:
- { environment: "dependencies", python-version: "3.x" }
- { environment: "typing", python-version: "3.x" }
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
id: setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
version: ${{ env.UV_VERSION }}
- name: Run tests
env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
TAP_CANNY_API_KEY: ${{ secrets.TAP_CANNY_API_KEY }}
TAP_CANNY_START_DATE: ${{ secrets.TAP_CANNY_START_DATE }}
run: |
uvx --with tox-uv==${{ env.TOX_UV_VERSION }} --with tox==${{ env.TOX_VERSION }} tox -e ${{ matrix.environment || matrix.python-version }}
pre-commit:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.x"
cache: pip
cache-dependency-path: .pre-commit-config.yaml
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
if: always()