Skip to content

Commit 2ea3d2f

Browse files
authored
Merge pull request #2 from openSUSE/gha-1
Fix #1: Add GitHub Action
2 parents bdf6089 + a6aab09 commit 2ea3d2f

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI/Test
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
test:
19+
name: python
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install the latest version of uv
27+
id: setup-uv
28+
uses: astral-sh/setup-uv@v6
29+
with:
30+
version: "latest"
31+
enable-cache: true
32+
cache-suffix: "docbuild"
33+
34+
- name: Print the installed version
35+
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
36+
37+
- name: Install dependencies
38+
run: uv sync --frozen --group devel
39+
40+
- name: Run tests
41+
run: |
42+
uv run pytest -vv

0 commit comments

Comments
 (0)