-
-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (28 loc) · 961 Bytes
/
test.yaml
File metadata and controls
30 lines (28 loc) · 961 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
name: Test Deploys
on:
push:
jobs:
deploy-test:
strategy:
matrix:
include:
- dir: python-web-app
deploy-file: deploy.py
inventory-file: inventories/docker.py
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
with:
enable-cache: true
python-version: "3.14"
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Install pyinfra from uv.lock
run: uv sync --frozen
- run: ./docker-start.sh
working-directory: ${{ matrix.dir }}
- name: Run pyinfra deploy
run: uv run pyinfra -y ${{ matrix.inventory-file }} ${{ matrix.deploy-file }}
working-directory: ${{ matrix.dir }}
- run: ./docker-stop.sh
working-directory: ${{ matrix.dir }}