Skip to content

Commit

Permalink
add tests CI
Browse files Browse the repository at this point in the history
fixup! add tests
  • Loading branch information
HarHarLinks committed Feb 17, 2024
1 parent 129bcfd commit a82b1ce
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 @@
# This workflow will install Python dependencies, then run tests with all supported versions of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test

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

jobs:
unittest:
strategy:
matrix:
version: ['3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U -e ".[dev]"
- name: Check import statement sorting
run: |
python3 -m unittest -v test/test_*.py

0 comments on commit a82b1ce

Please sign in to comment.