Skip to content

Commit

Permalink
add github action for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
velikodniy committed Nov 4, 2024
1 parent 638849b commit bd43fc9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test

on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
run:
name: Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: |
python${{ matrix.python-version }} -m pip install hatch
- name: Run static analysis
run: hatch fmt --check

# - name: Check types
# run: hatch run types:check

- name: Run tests
run: hatch test --python ${{ matrix.python-version }}

0 comments on commit bd43fc9

Please # to comment.