Self-host via uv with pinned pyinfra (#18) #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |