Skip to content

Commit

Permalink
Add basic test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jun 25, 2024
1 parent e10b9fa commit a396888
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Deploys

on:
push:
pull_request:

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@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: docker/setup-buildx-action@v2
- run: pip install pyinfra --pre
- name: Run the test
working-directory: ${{ matrix.dir }}
run: ./docker-start.sh
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

# pyinfra -y ${{ matrix.inventory-file }} ${{ matrix.deploy-file }}
# ./docker-stop.sh

0 comments on commit a396888

Please sign in to comment.