Skip to content

Commit

Permalink
ci: test PR's and master pushes with Nox
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 21, 2023
1 parent d8fce13 commit 2fbbbaf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tests

on:
pull_request:
push:
branches:
- master

jobs:
nox:
name: Nox
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12.0-alpha - 3.12"
- "pypy-3.9"
steps:
- uses: actions/checkout@v3
- uses: excitedleigh/[email protected]
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
v="${{ matrix.python-version }}"
v=${v##* } # "3.12.0-alpha - 3.12" -> "3.12"
v=${v//-} # "pypy-3.9" -> "pypy3.9"
nox --force-color --python "$v"

0 comments on commit 2fbbbaf

Please sign in to comment.