Skip to content

Run tests for commit - Perform type-checking on CI #50

Run tests for commit - Perform type-checking on CI

Run tests for commit - Perform type-checking on CI #50

Workflow file for this run

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: sudo python3 test.py
- run: docker compose logs
if: ${{ failure() }}
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip3 install mypy localstack watchdog==3.0.0
- run: "touch $(pip3 show localstack | sed -n 's/Location: //p')/localstack/py.typed"
- run: mypy src