Skip to content

Commit

Permalink
Update the CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Sep 9, 2024
1 parent 4778d97 commit b81f4b3
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "🔬 Test"
name: "🧪 Test"

on:
pull_request:
Expand All @@ -21,13 +21,11 @@ jobs:
- "macOS"
- "Windows"
- "Quality"
cache:
- key:
hash-files:
- "pyproject.toml"
- "requirements/*/*.txt"
paths:
- ".mypy_cache/"
cache-key-hash-files:
- - "pyproject.toml"
- "requirements/*/*.txt"
cache-paths:
- - ".mypy_cache/"

include:
# Test extensively on Linux.
Expand All @@ -42,44 +40,41 @@ jobs:
pypys:
- "3.9"
- "3.10"
tox:
post-environments:
- "py3.9-minimum_dependencies"
- "py3.9-http-lxml"
- "py3.12-http-lxml"
tox-post-environments:
- "py3.9-minimum_dependencies"
- "py3.9-http-lxml"
- "py3.12-http-lxml"

# Test lowest and highest versions on Mac.
- name: "macOS"
runner: "macos-latest"
cpythons:
- "3.9"
- "3.12"
tox:
environments:
- "py3.9"
- "py3.12"
tox-environments:
- "py3.9"
- "py3.12"

# Test lowest and highest versions on Windows.
- name: "Windows"
runner: "windows-latest"
cpythons:
- "3.9"
- "3.12"
tox:
environments:
- "py3.9"
- "py3.12"
tox-environments:
- "py3.9"
- "py3.12"

# Check type annotations and documentation.
- name: "Quality"
runner: "ubuntu-latest"
cpythons:
- "3.12"
tox:
environments:
- "docs"
- "mypy"
tox-environments:
- "docs"
- "mypy"
cache-key-prefix: "quality"

uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@73024397dba10c866931a1d26cc2a0e7d223472f" # v0.2
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@420931a88d3f09ca8dbce4778d145ed610c231e0" # v0.4
with:
config: "${{ toJSON(matrix) }}"

0 comments on commit b81f4b3

Please sign in to comment.