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 be23295 commit 89ec2ae
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 78 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@
name: 🐳 Docker

on:
workflow_call:
pull_request:
paths:
- .github/workflows/docker-build.yml
- Dockerfile
- docker-compose.yml
- platforms.yml
- poetry.lock

push:
tags: v*
branches: [main]

# ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Expand Down
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/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_OUTPUT

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
64 changes: 0 additions & 64 deletions .github/workflows/pr.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/protected.yml

This file was deleted.

0 comments on commit 89ec2ae

Please sign in to comment.