From ff09c39059167ae5e1e58cfbd6586400220e36d6 Mon Sep 17 00:00:00 2001 From: Bryant Finney Date: Thu, 21 Dec 2023 22:46:43 -0500 Subject: [PATCH] ci(bryant-finney/pyspry#49): ci(bryant-finney/pyspry#49): add `poe-test.yml` run `poe test` from this repository's `dev` Docker container Signed-off-by: Bryant Finney --- .github/workflows/poe-test.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/poe-test.yml diff --git a/.github/workflows/poe-test.yml b/.github/workflows/poe-test.yml new file mode 100644 index 0000000..1acbe52 --- /dev/null +++ b/.github/workflows/poe-test.yml @@ -0,0 +1,41 @@ +name: 🧪 poe test + +on: + pull_request: + paths: + - .github/workflows/poe-test.yml + - "**/*.py" + - "*.py" + - Dockerfile + - poetry.lock + - pyproject.toml + - sample-config.yml + + push: + branches: [main] + tags: [v*] + +jobs: + git: + outputs: + short_sha: ${{ steps.printf.outputs.SHORT_SHA }} + runs-on: ubuntu-latest + steps: + - id: printf + run: printf 'SHORT_SHA=%s\n' "${GITHUB_SHA::7}" >>$GITHUB_ENV + + run: + container: + image: ghcr.io/${{ github.repository }}:${{ needs.git.outputs.short_sha }} + + needs: git + permissions: + contents: read + pull-requests: write + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - run: poe test