Run tests for commit - Convert top-level test.sh/test.cmd scripts to python This requires the host system has python3 installed, but does not require any particular pip packages #41
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
name: Test | |
run-name: | | |
Run tests for ${{ | |
(github.event_name == 'push' && format('commit - {0}', github.event.head_commit.message)) || | |
(github.event_name == 'pull_request' && format('PR #{0} - {1}', github.event.number, github.event.pull_request.title)) || | |
format('{0} (manually triggered)', github.ref_name) | |
}} | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python3 test.py | |
- run: docker compose logs | |
if: ${{ failure() }} |