-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1007 Bytes
/
Copy pathci.yaml
File metadata and controls
47 lines (42 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches:
- main
- release-*
tags-ignore:
- "v*"
pull_request: {}
workflow_dispatch: {}
permissions:
contents: read
packages: write
env:
PYTHON_VERSION: "3.13"
HATCH_VERSION: "1.17.1"
DOCKER_BUILDX_VERSION: "v0.30.1"
XP_CHANNEL: stable
XPKG: ghcr.io/${{ github.repository }}
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Hatch
run: pipx install hatch==${{ env.HATCH_VERSION }}
- name: Lint
run: hatch fmt
unit-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Hatch
run: pipx install hatch==${{ env.HATCH_VERSION }}
- name: Run unit tests
run: hatch test --all --randomize