Skip to content

Run tests for commit - Switch from mypy to pyright #56

Run tests for commit - Switch from mypy to pyright

Run tests for commit - Switch from mypy to pyright #56

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
strategy:
matrix:
PERSIST_FORMAT: ["json", "binary", "json,binary"]
fail-fast: false
env:
PERSIST_FORMAT: ${{ matrix.PERSIST_FORMAT }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo python3 test.py
- run: docker compose logs
if: ${{ failure() }}
test_backward_compatibility:
name: Test backward-compatibility
strategy:
matrix:
TEST_PERSISTED_DATA_DIR: ["v2", "v3", "v3_binary"]
fail-fast: false
env:
SKIP_TEST_SETUP: 1
TEST_PERSISTED_DATA_DIR: ${{ matrix.TEST_PERSISTED_DATA_DIR }}
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 jsonpickle==3.0.2 watchdog==3.0.0
- run: npx -y pyright