Skip to content

Commit

Permalink
Merge pull request #31 from henryborchers/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
eddycolloton authored Dec 3, 2024
2 parents 7b554d1 + 49f142b commit eb5bd9c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on: [push, pull_request]
name: Supported Python Compatibility Test
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
include:
- os: macos-latest
- os: ubuntu-latest
- os: windows-2019
fail-fast: false
name: Python ${{ matrix.python-version }} ${{ matrix.os }} build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install requirements
run: |
pip install tox
- uses: actions/github-script@v7
id: tox-env
with:
result-encoding: string
script: |
const frontend = "${{matrix.frontend}}"
const toxEnv = "py${{matrix.python-version}}".replace('.','')
if(frontend === ""){
return toxEnv
}
return "py${{matrix.python-version}}".replace('.','') + "-${{matrix.frontend}}"
- name: Run tox
run: tox -e ${{ steps.tox-env.outputs.result }}
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ makeqctoolsreport = "qct_parse.makeqctoolsreport:main"
overcatch = "qct_parse.overcatch:main"
qct-parse = "qct_parse.qct_parse:main"

[tool.tox]
envlist = ["3.9", "3.10", "3.11", "3.12", "3.13"]

0 comments on commit eb5bd9c

Please sign in to comment.