Fiddle: update mypy rules for pydantic + move all config to pyproject.toml #62
Workflow file for this run
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: Build | |
on: | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build-package: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_IMAGE: buildpy | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Build docker image | |
run: docker build --tag $DOCKER_IMAGE . | |
- name: Run lint-check | |
run: | | |
docker run --name lint-check $DOCKER_IMAGE make lint-check-ci | |
docker cp lint-check:/app/lint-check-results.json ./lint-check-results.json | |
- name: Upload lint-check results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: ./lint-check-results.json | |
check-name: lint-check | |
fail-on-error: false | |
- name: Run type-check | |
run: | | |
docker run --name type-check $DOCKER_IMAGE make type-check-ci | |
docker cp type-check:/app/type-check-results.json ./type-check-results.json | |
- name: Upload type-check results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: ./type-check-results.json | |
check-name: type-check | |
fail-on-error: false | |
- name: Run security-check | |
run: | | |
docker run --name security-check $DOCKER_IMAGE make security-check-ci | |
docker cp security-check:/app/security-check-results.json ./security-check-results.json | |
- name: Upload security-check results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: ./security-check-results.json | |
check-name: security-check | |
fail-on-error: false |