Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Jun 14, 2024
1 parent 3026153 commit 26893a7
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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 }}

0 comments on commit 26893a7

Please sign in to comment.