Skip to content

Commit

Permalink
Merge pull request #1049 from globus/reusable-tox-workflow
Browse files Browse the repository at this point in the history
Migrate to the reusable tox workflow
  • Loading branch information
kurtmckee authored Nov 8, 2024
2 parents 8de1f23 + d520aae commit f598760
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 290 deletions.
282 changes: 0 additions & 282 deletions .github/workflows/build.yaml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "🧪 Test"
on:
push:
branches:
- "main"
pull_request:
# build weekly at 4:00 AM UTC
schedule:
- cron: '0 4 * * 1'

jobs:
test:
name: "${{ matrix.name }}"
strategy:
fail-fast: false
matrix:
include:
- name: "Linux"
runner: "ubuntu-latest"
cpythons:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
tox-post-environments:
- "py3.8-mindeps"
- "py3.8-sdkmain"
- "py3.12-sdkmain"
cache-key-prefix: "linux"
cache-key-hash-files:
- "setup.py"

- name: "macOS"
runner: "macos-latest"
cpythons:
- "3.12"
tox-environments-from-pythons: true
cache-key-prefix: "macos"
cache-key-hash-files:
- "setup.py"

- name: "Windows"
runner: "windows-latest"
cpythons:
- "3.12"
tox-environments-from-pythons: true
cache-key-prefix: "windows"
cache-key-hash-files:
- "setup.py"

- name: "Quality"
runner: "ubuntu-latest"
cpythons:
- "3.12"
tox-environments:
- "mypy"
- "reference"
- "twine-check"
cache-key-prefix: "quality"
cache-files:
- ".mypy_cache/"
cache-key-hash-files:
- "setup.py"

uses: "globus/workflows/.github/workflows/tox.yaml@04b4abd6fcb9b4be7263bc9d6994ae2ada220739" # v1.1
with:
config: "${{ toJSON(matrix) }}"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ attr = "globus_cli.version.__version__"
profile = "black"

[tool.pytest.ini_options]
addopts = "--timeout 3"
addopts = "--timeout 3 --color=yes"
filterwarnings = ["error"]

[tool.scriv]
Expand Down
Loading

0 comments on commit f598760

Please sign in to comment.