|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 |
|
| 8 | +concurrency: |
| 9 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 10 | + cancel-in-progress: false |
| 11 | + |
| 12 | +env: |
| 13 | + UV_VERSION: "0.7.3" |
| 14 | + |
8 | 15 | jobs: |
9 | | - continous-integration: |
| 16 | + continuous-integration: |
| 17 | + if: github.actor != 'dependabot[bot]' |
10 | 18 | runs-on: ubuntu-latest |
11 | 19 | env: |
12 | | - UV_NO_SYNC: 1 |
| 20 | + COMMON__ENVIRONMENT: Development |
13 | 21 | steps: |
14 | 22 | - name: Checkout repository |
15 | | - uses: actions/checkout@v4 |
| 23 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
16 | 24 |
|
17 | 25 | - name: Install uv |
18 | | - uses: astral-sh/setup-uv@v3 |
| 26 | + uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1 |
19 | 27 | with: |
20 | | - version: "0.4.25" |
| 28 | + version: ${{ env.UV_VERSION}} |
21 | 29 |
|
22 | 30 | - name: Install Python |
23 | | - uses: actions/setup-python@v5 |
| 31 | + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
24 | 32 | with: |
25 | | - python-version-file: ".python-version" |
| 33 | + python-version-file: .python-version |
26 | 34 |
|
27 | 35 | - name: Install Python packages |
28 | 36 | run: uv sync --locked |
|
34 | 42 | extra_args: --all-files |
35 | 43 |
|
36 | 44 | - 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 |
38 | 66 | shell: bash |
0 commit comments