Skip to content

Commit 7d14208

Browse files
authored
chore: Add GitHub Actions workflow for testing
This workflow installs Python dependencies and runs tests using pytest.
1 parent 5196588 commit 7d14208

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ "dev", "main" ]
9+
pull_request:
10+
branches: [ "dev", "main" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Install python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version-file: "pyproject.toml"
26+
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v7
29+
with:
30+
enable-cache: true
31+
32+
- name: Install the project
33+
run: uv sync --group dev
34+
35+
- name: Test with pytest
36+
run: |
37+
uv run pytest

0 commit comments

Comments
 (0)