Skip to content

Commit

Permalink
Merge pull request #4 from aulasoftwarelibre/actions
Browse files Browse the repository at this point in the history
ci: update test actions
  • Loading branch information
sgomez authored Oct 27, 2024
2 parents 9275c56 + b58ab50 commit a6e623c
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
name: Test

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Prepare repo
uses: actions/checkout@master
- name: Test
uses: onichandame/python-test-action@master

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

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: Cache `uv` dependencies
uses: actions/cache@v3
with:
path: .uv
key: ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest tests

0 comments on commit a6e623c

Please sign in to comment.