Skip to content

Commit

Permalink
Merge pull request #484 from kurtmckee/use-shared-workflow
Browse files Browse the repository at this point in the history
Migrate to the shared tox workflow
  • Loading branch information
kurtmckee authored Nov 5, 2024
2 parents 6dd43b7 + 819fb62 commit 5ea9bbc
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 169 deletions.
File renamed without changes.
83 changes: 83 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "🧪 Test"

on:
pull_request:
push:
branches:
- "develop"
- "master"
- "main"
- "releases"

jobs:
test:
name: "${{ matrix.name }}"
strategy:
fail-fast: false
matrix:
include:
- name: "Linux (CPython)"
runner: "ubuntu-latest"
cpythons:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
tox-factors:
- "chardet"
cache-key-hash-files:
- "pyproject.toml"
- "requirements/*/requirements.txt"

- name: "Linux (PyPy)"
runner: "ubuntu-latest"
pypys:
- "3.9"
- "3.10"
tox-factors:
- "chardet"
cache-key-hash-files:
- "pyproject.toml"
- "requirements/*/requirements.txt"

# macOS and Windows tests target only the upper and lower CPython versions.
- name: "macOS"
runner: "macos-latest"
cpythons:
- "3.9"
- "3.13"
tox-factors:
- "chardet"
cache-key-hash-files:
- "pyproject.toml"
- "requirements/*/requirements.txt"

- name: "Windows"
runner: "windows-latest"
cpythons:
- "3.9"
- "3.13"
tox-factors:
- "chardet"
cache-key-hash-files:
- "pyproject.toml"
- "requirements/*/requirements.txt"

- name: "Quality"
runner: "ubuntu-latest"
cpythons:
- "3.12"
tox-environments:
- "docs"
- "mypy"
cache-paths:
- ".mypy_cache/"
cache-key-hash-files:
- "docs/conf.py"
- "pyproject.toml"
- "requirements/*/requirements.txt"

uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@2f156c58bf4ceebc623014b407f5711899e41235" # v1.0
with:
config: "${{ toJSON(matrix) }}"
169 changes: 0 additions & 169 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 5ea9bbc

Please sign in to comment.