Skip to content

Commit

Permalink
Add python tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KatieLG committed Dec 15, 2024
1 parent dac30cc commit 0e9f32f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Python tests

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

permissions:
contents: read

jobs:
run-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./AOC/python
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: './AOC/python/pyproject.toml'

- name: Set up Python
run: uv python install

- name: Install requirements
run: uv sync

- name: Lint
run: make lint

- name: Test
run: make test

0 comments on commit 0e9f32f

Please sign in to comment.