Skip to content

Commit

Permalink
Adding github action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongilman committed Sep 25, 2024
1 parent 87efafd commit 460e533
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Python Test
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
python-version:
- "3.10"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
scripts/recreate_venv.sh
- name: Run linting
run: |
. .venv/bin/activate
scripts/lint.sh
- name: Run Tests
run: |
. .venv/bin/activate
scripts/test.sh

0 comments on commit 460e533

Please sign in to comment.