Skip to content

Issue 15 add GitHub actions #13

Issue 15 add GitHub actions

Issue 15 add GitHub actions #13

Workflow file for this run

# Workflow template from https://github.com/tox-dev/tox-gh
name: Formatting, Linting and Testing
on:
push:
branches: main
pull_request:
branches: main
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test with ${{ matrix.py }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
py:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox --notest
- name: Run test suite
env:
TOKEN: ${{ secrets.TOKEN }}
run: tox --skip-pkg-install