Skip to content

Commit 63044b5

Browse files
committed
chore: initial GHA workflow
1 parent a7636d5 commit 63044b5

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
github: [yaal-coop]

.github/workflows/release.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: bundle
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: build dist files
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v3
17+
with:
18+
enable-cache: true
19+
- name: build dist
20+
run: uv build
21+
- uses: actions/upload-artifact@v4
22+
with:
23+
name: artifacts
24+
path: dist/*
25+
if-no-files-found: error
26+
27+
release:
28+
name: create Github release
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: softprops/action-gh-release@v2
32+
33+
publish:
34+
name: release to pypi
35+
needs: build
36+
runs-on: ubuntu-latest
37+
38+
environment:
39+
name: pypi-release
40+
url: https://pypi.org/project/pytest-scim2-server/
41+
permissions:
42+
id-token: write
43+
44+
steps:
45+
- uses: actions/download-artifact@v4
46+
with:
47+
name: artifacts
48+
path: dist
49+
50+
- name: Push build artifacts to PyPI
51+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: tests
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.*'
8+
pull_request:
9+
branches:
10+
- main
11+
- '*.*.*'
12+
13+
jobs:
14+
tests:
15+
name: py${{ matrix.python }} unit tests
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python:
21+
- '3.13'
22+
- '3.12'
23+
- '3.11'
24+
- '3.10'
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v3
29+
with:
30+
enable-cache: true
31+
- name: Install Python ${{ matrix.python }}
32+
run: uv python install ${{ matrix.python }}
33+
- name: Run tests
34+
run: uv run pytest --showlocals
35+
36+
minversions:
37+
name: minimum dependency versions
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v3
43+
with:
44+
enable-cache: true
45+
- name: Install minimum dependencies
46+
run: uv sync --resolution=lowest-direct
47+
- name: Run tests
48+
run: uv run pytest --showlocals
49+
50+
style:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)