diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..04c8a2d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,47 @@ +name: "🧪 Test" + +on: + pull_request: + push: + branches: + - "main" + - "releases" + +jobs: + test: + name: + "${{ + (startswith(matrix.runner, 'ubuntu') && 'Linux') + || (startswith(matrix.runner, 'macos') && 'macOS') + || (startswith(matrix.runner, 'windows') && 'Windows') + }}" + + strategy: + matrix: + runner: + - "ubuntu-latest" + - "macos-latest" + - "windows-latest" + cpythons: + - - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + cpython-beta: + - "3.13" + pypys: + - - "3.8" + - "3.9" + - "3.10" + cache: + - key: + hash-files: + - "pyproject.toml" + - "requirements/*/*.txt" + paths: + - ".mypy_cache/" + + uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@73024397dba10c866931a1d26cc2a0e7d223472f" # v0.2 + with: + config: "${{ toJSON(matrix) }}" diff --git a/changelog.d/20240605_222619_kurtmckee_add_ci.rst b/changelog.d/20240605_222619_kurtmckee_add_ci.rst new file mode 100644 index 0000000..adfbaea --- /dev/null +++ b/changelog.d/20240605_222619_kurtmckee_add_ci.rst @@ -0,0 +1,4 @@ +Development +----------- + +* Add CI testing.