Skip to content

Commit

Permalink
ci(#49): add poe-test.yml
Browse files Browse the repository at this point in the history
run `poe test` from this repository's `dev` Docker container

Signed-off-by: Bryant Finney <[email protected]>
  • Loading branch information
bryant-finney committed Dec 22, 2023
1 parent 11b75b6 commit 854b64e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/poe-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 🧪 poe test

on:
pull_request:
paths:
- .github/workflows/pytest.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

0 comments on commit 854b64e

Please sign in to comment.