Skip to content

Commit 4ccc9c3

Browse files
committed
ci: update actions
1 parent 46ba861 commit 4ccc9c3

7 files changed

Lines changed: 2230 additions & 1666 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "Setup Python Workspace"
3+
description: "Configure Python tools with UV"
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Set up Python 3
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: "3.12"
12+
13+
- name: Install dependencies
14+
shell: bash
15+
run: |
16+
pip install poetry
17+
poetry install --with dev
18+
19+
- name: Install Just
20+
uses: extractions/setup-just@v2

.github/workflows/load-test.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@ permissions:
1111
jobs:
1212
load-testing:
1313
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
1714
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3
20-
uses: actions/setup-python@v3
21-
with:
22-
python-version: "3.10"
15+
- name: Checkout repository
16+
uses: actions/checkout@v5
17+
18+
- name: Set up workspace
19+
uses: ./.github/actions/setup-workspace
20+
2321
- name: Install dependencies
2422
run: |
2523
sudo apt-get update
2624
sudo apt-get install -y jq
2725
python -m pip install --upgrade pip
2826
pip install poetry
2927
poetry install --with dev
28+
3029
- name: Run Locust tests
3130
run: |
3231
poetry run locust \

.github/workflows/main.yaml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,27 @@ permissions:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20-
strategy:
21-
fail-fast: false
22-
2320
steps:
2421
- name: Check repository
25-
uses: actions/checkout@v3
26-
27-
- name: Set up Python 3
28-
uses: actions/setup-python@v3
29-
with:
30-
python-version: "3.10"
22+
uses: actions/checkout@v5
3123

32-
- name: Install dependencies
33-
run: |
34-
pip install poetry
35-
poetry install --with dev
36-
37-
- name: Install Just
38-
uses: extractions/setup-just@v2
24+
- name: Set up workspace
25+
uses: ./.github/actions/setup-workspace
3926

4027
- name: Check test coverage
4128
run: |
42-
just pytest -vv
29+
just pytest -x
4330
4431
deploy:
4532
runs-on: ubuntu-latest
4633
if: ${{ github.ref == 'refs/heads/main'}}
4734
needs: build
4835
environment: production
49-
5036
steps:
5137
- name: Deploy to Render
5238
env:
5339
RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
5440
run: |
5541
curl -s ${{ secrets.RENDER_DEPLOY_HOOK }} \
5642
-X POST \
57-
-H "Authorization: Bearer $RENDER_API_KEY"
43+
-H "Authorization: Bearer ${RENDER_API_KEY}"

.github/workflows/pre-commit.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ on:
99
jobs:
1010
pre-commit:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
fail-fast: false
1412

1513
steps:
1614
- name: Checkout repository
17-
uses: actions/checkout@v3
15+
uses: actions/checkout@v5
1816

19-
- name: Set up Python
20-
uses: actions/setup-python@v3
21-
with:
22-
python-version: "3.10"
17+
- name: Set up workspace
18+
uses: ./.github/actions/setup-workspace
2319

2420
- name: Install dependencies
2521
run: |

.github/workflows/smoke-tests.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v5
1717

18-
- name: Set up Python
19-
uses: actions/setup-python@v3
20-
with:
21-
python-version: "3.10"
22-
23-
- name: Install base dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install poetry tabulate
27-
poetry install --with dev
18+
- name: Set up workspace
19+
uses: ./.github/actions/setup-workspace
2820

2921
- name: Run smoke tests script
3022
run: |

.github/workflows/testing.yaml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,13 @@ permissions:
1414
jobs:
1515
coverage:
1616
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: false
1917

2018
steps:
21-
- uses: actions/checkout@v3
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
2221

23-
- name: Set up Python 3
24-
uses: actions/setup-python@v3
25-
with:
26-
python-version: "3.10"
27-
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install poetry
32-
poetry install --with dev
22+
- name: Set up workspace
23+
uses: ./.github/actions/setup-workspace
3324

3425
- name: Run unit tests with coverage
3526
run: |
@@ -57,22 +48,12 @@ jobs:
5748

5849
feature-tests:
5950
runs-on: ubuntu-latest
60-
strategy:
61-
fail-fast: false
62-
6351
steps:
64-
- uses: actions/checkout@v3
52+
- name: Checkout repository
53+
uses: actions/checkout@v5
6554

66-
- name: Set up Python 3
67-
uses: actions/setup-python@v3
68-
with:
69-
python-version: "3.10"
70-
71-
- name: Install dependencies
72-
run: |
73-
python -m pip install --upgrade pip
74-
pip install poetry
75-
poetry install --with dev
55+
- name: Set up workspace
56+
uses: ./.github/actions/setup-workspace
7657

7758
- name: Run Gherkin tests
7859
run: |

0 commit comments

Comments
 (0)