Skip to content

[chore] automate linting and tests #8

[chore] automate linting and tests

[chore] automate linting and tests #8

name: Entities tests
on:
push:
branches:
- trunk
paths:
- "entities/**"
pull_request:
branches: "**"
paths:
- "entities/**"
jobs:
py-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Enable ARM
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build images and run linters
- name: Lint Python
working-directory: entities
run: |
make gha-setup
make local-build
make check-lint
py-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Enable ARM
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Set up a local dev env and run tests
- name: Run tests
working-directory: entities
run: |
make gha-setup
make local-init
make local-tests