Skip to content

Commit

Permalink
Run the container test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
naddeoa committed Jan 16, 2024
1 parent f38d4d0 commit 8fc8d7b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/configure-container.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions examples/configure-container/.github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ jobs:

- name: Build Docker container
run: make build

- name: Run tests against container
run: make test

0 comments on commit 8fc8d7b

Please sign in to comment.