-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run `poe test` from this repository's `dev` Docker container Signed-off-by: Bryant Finney <[email protected]>
- Loading branch information
1 parent
11b75b6
commit 854b64e
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |