-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.63 KB
/
pull_request.yaml
File metadata and controls
66 lines (53 loc) · 1.63 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Pull request
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
UV_VERSION: "0.7.3"
jobs:
continuous-integration:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
env:
COMMON__ENVIRONMENT: Development
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
with:
version: ${{ env.UV_VERSION}}
- name: Install Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version-file: .python-version
- name: Install Python packages
run: uv sync --locked
shell: bash
- name: Pre-commit
uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files
- name: Unit tests
run: uv run --frozen -- pytest -m unit
shell: bash
# - name: Integration tests
# run: uv run --frozen -- pytest -m integration
# shell: bash
release:
needs: continuous-integration
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
with:
version: ${{ env.UV_VERSION}}
- name: Install Python packages
run: uv sync --locked --no-dev
shell: bash