Skip to content

chore: Use tox instead of hatch #125

chore: Use tox instead of hatch

chore: Use tox instead of hatch #125

Workflow file for this run

name: Test tap-transifex
on:
push:
branches: [main]
paths:
- tap_transifex/**
- tests/**
- pyproject.toml
- .github/workflows/test.yml
- .github/workflows/constraints.txt
pull_request:
types: [opened, synchronize, reopened]
paths:
- tap_transifex/**
- tests/**
- pyproject.toml
- .github/workflows/test.yml
- .github/workflows/constraints.txt
workflow_dispatch:
schedule:
# Run weekly on Monday at 12:00 PM UTC
- cron: "0 12 * * 1"
env:
FORCE_COLOR: "1"
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
id: setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
- name: Run tests
env:
TAP_TRANSIFEX_TOKEN: ${{ secrets.TAP_TRANSIFEX_TOKEN }}
TAP_TRANSIFEX_START_DATE: ${{ secrets.TAP_TRANSIFEX_START_DATE }}
run: |
uvx --with tox-gh --with tox-uv tox -e ${{ matrix.python-version }}
pre-commit:
runs-on: ubuntu-latest
env:
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
if: always()