Skip to content

Commit

Permalink
ci: add GitHub Actions workflow for automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
T0217 committed Sep 19, 2024
1 parent ad293b9 commit b30ebfb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
continue-on-error: true
- name: Lint
if: matrix.python-version == '3.11'
run: tox -e lint
continue-on-error: true

0 comments on commit b30ebfb

Please sign in to comment.