Skip to content

Commit 924dc90

Browse files
committed
Add changes
1 parent d478e95 commit 924dc90

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

.github/workflows/pull_request.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,32 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: false
11+
12+
env:
13+
UV_VERSION: "0.7.3"
14+
815
jobs:
9-
continous-integration:
16+
continuous-integration:
17+
if: github.actor != 'dependabot[bot]'
1018
runs-on: ubuntu-latest
1119
env:
12-
UV_NO_SYNC: 1
20+
COMMON__ENVIRONMENT: Development
1321
steps:
1422
- name: Checkout repository
15-
uses: actions/checkout@v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1624

1725
- name: Install uv
18-
uses: astral-sh/setup-uv@v3
26+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
1927
with:
20-
version: "0.4.25"
28+
version: ${{ env.UV_VERSION}}
2129

2230
- name: Install Python
23-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2432
with:
25-
python-version-file: ".python-version"
33+
python-version-file: .python-version
2634

2735
- name: Install Python packages
2836
run: uv sync --locked
@@ -34,5 +42,25 @@ jobs:
3442
extra_args: --all-files
3543

3644
- name: Unit tests
37-
run: uv run -- pytest -m unit
45+
run: uv run --frozen -- pytest -m unit
46+
shell: bash
47+
48+
- name: Integration tests
49+
run: uv run --frozen -- pytest -m integration
50+
shell: bash
51+
52+
release:
53+
needs: continuous-integration
54+
runs-on: ubuntu-22.04
55+
steps:
56+
- name: Checkout repository
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
59+
- name: Install uv
60+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
61+
with:
62+
version: ${{ env.UV_VERSION}}
63+
64+
- name: Install Python packages
65+
run: uv sync --locked --no-dev
3866
shell: bash

0 commit comments

Comments
 (0)