diff --git a/.github/workflows/configure-container.yaml b/.github/workflows/configure-container.yaml new file mode 100644 index 0000000..69c9c4d --- /dev/null +++ b/.github/workflows/configure-container.yaml @@ -0,0 +1,48 @@ +name: configure-container example + +on: + pull_request: + branches: ["*"] + +jobs: + build: + name: Build and run all tests and checks + timeout-minutes: 60 + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./examples/configure-container + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + name: Install Python + with: + python-version: "3.10.8" + + - uses: Gr1N/setup-poetry@v8 + name: Install poetry + with: + poetry-version: 1.7.1 + + - name: Install python dependencies + run: make install + + - name: Check types + run: make lint + + - name: Check formatting + run: make format + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker container + run: make build + + - name: Run tests against container + run: make test diff --git a/examples/configure-container/.github/workflows/workflow.yaml b/examples/configure-container/.github/workflows/workflow.yaml index 328aaef..3da9801 100644 --- a/examples/configure-container/.github/workflows/workflow.yaml +++ b/examples/configure-container/.github/workflows/workflow.yaml @@ -59,3 +59,6 @@ jobs: - name: Build Docker container run: make build + + - name: Run tests against container + run: make test