Skip to content

Commit

Permalink
Add GitHub action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed Dec 23, 2024
1 parent 953ce6e commit 7f104e5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allow manual workflow triggering from the "Actions" tab.
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ['3.9']

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.11"
enable-cache: true
cache-dependency-glob: "uv.lock"

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

- name: Install project
run: uv sync --frozen --only-group test

- name: Run tests
run: |
uv run pytest

0 comments on commit 7f104e5

Please sign in to comment.