chore: Update pyproject.toml
#92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test tap-transifex | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - tap_transifex/** | |
| - tests/** | |
| - pyproject.toml | |
| - uv.lock | |
| - .github/workflows/test.yml | |
| - .github/workflows/requirements.txt | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - tap_transifex/** | |
| - tests/** | |
| - pyproject.toml | |
| - uv.lock | |
| - .github/workflows/test.yml | |
| - .github/workflows/requirements.txt | |
| workflow_dispatch: | |
| schedule: | |
| # Run weekly on Monday at 12:00 PM UTC | |
| - cron: "0 12 * * 1" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: "1" | |
| UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/requirements.txt | |
| jobs: | |
| build-package: | |
| name: Build & verify package | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| supported-python-versions: ${{ steps.baipp.outputs.supported_python_classifiers_json_array }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0 | |
| id: baipp | |
| test: | |
| name: Test | |
| runs-on: ubuntu-24.04 | |
| needs: build-package | |
| strategy: | |
| max-parallel: 1 | |
| matrix: | |
| python-version: ${{ fromJson(needs.build-package.outputs.supported-python-versions) }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests | |
| env: | |
| TAP_TRANSIFEX_TOKEN: ${{ secrets.TAP_TRANSIFEX_TOKEN }} | |
| TAP_TRANSIFEX_START_DATE: ${{ secrets.TAP_TRANSIFEX_START_DATE }} | |
| MATRIX_PYTHON_VERSION: ${{ matrix.python-version }} | |
| run: > | |
| uvx | |
| --with tox-uv | |
| tox -e ${MATRIX_PYTHON_VERSION} | |
| lint: | |
| name: Static analysis | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| - run: > | |
| uv tool install | |
| --managed-python | |
| --with tox-uv | |
| tox | |
| - name: Static Analysis | |
| run: tox -m check | |
| pre-commit: | |
| name: pre-commit | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| - run: uvx prek run --show-diff-on-failure --all-files |