Skip to content

Repair the violations from Ruff 0.16's expanded defaults. #73

Repair the violations from Ruff 0.16's expanded defaults.

Repair the violations from Ruff 0.16's expanded defaults. #73

Workflow file for this run

name: tests
on:
merge_group:
push:
branches-ignore:
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
- gh-readonly-queue/**
tags:
# required if branches-ignore is supplied (jaraco/skeleton#103)
- '**'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
# https://blog.jaraco.com/efficient-use-of-ci-resources/
matrix:
python:
- "3.10"
- "3.14"
- "3.14t"
platform:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- python: "3.11"
platform: ubuntu-latest
- python: "3.12"
platform: ubuntu-latest
- python: "3.13"
platform: ubuntu-latest
- python: "3.15"
platform: ubuntu-latest
- python: pypy3.11
platform: ubuntu-latest
uses: ./.github/workflows/test-suite.yml
with:
python: ${{ matrix.python }}
platform: ${{ matrix.platform }}
secrets: inherit
collateral:
strategy:
fail-fast: false
matrix:
job:
- diffcov
- docs
uses: ./.github/workflows/test-suite.yml
with:
platform: ubuntu-latest
tox-env: ${{ matrix.job }}
secrets: inherit
check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- test
- collateral
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
release:
environment: release
permissions:
contents: write
id-token: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install tox
run: python -m pip install tox
- name: Build
run: tox -e release exec -- python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tox -e release exec -- python -m jaraco.develop.create-github-release