Skip to content

add github workflow

add github workflow #2

Workflow file for this run

name: Run tests
on: [push, pull_request]
permissions:
contents: read
jobs:
run-test:
# name: test-${{ matrix.python-version }}-${{ matrix.env }}
runs-on: ${{ matrix.os }}
strategy:
# run this job using this matrix, excluding some combinations below.
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.10"
env:
- py
include:
- os: "ubuntu-latest"
env: sqla14
- os: "ubuntu-latest"
env: sqla20
- os: "ubuntu-latest"
env: sqla21
- os: "ubuntu-latest"
env: pep484
- os: "ubuntu-latest"
env: pep8
fail-fast: false
# steps to run in each job. Some are github actions, others run shell commands
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e ${{ matrix.env }}