From be7ca948b7fae8bc0fd2fce6064da5a4c775c8e5 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Fri, 17 May 2024 22:33:29 -0600 Subject: [PATCH] add ci workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..569240c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: ci + +on: + pull_request: + push: + branches: [main] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + - name: build ci image + uses: docker/build-push-action@v5 + with: + context: . + tags: teufa:ci + target: ci + load: true + cache-from: type=gha + cache-to: type=gha,mode=max + push: false + - name: run pytest + uses: addnab/docker-run-action@v3 + with: + image: teufa:ci + run: pytest