Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor authored Dec 11, 2024
1 parent 904bdc6 commit 3b52176
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run python tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
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@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/[email protected]
with:
version: "latest"

- name: Install dependencies
run: |
uv venv --python ${{ matrix.python-version }}
uv pip install -e .
- name: Lint with ruff
run: |
uv run ruff check . --statistics
# - name: Test with pytest
# run: |
# pytest

0 comments on commit 3b52176

Please sign in to comment.