Version bump v0.22.3 (#605) #2
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: Code Checks | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v3 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Run formatter | |
run: poetry run black --check . | |
type-check: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- name: Checkout actions | |
uses: actions/checkout@v3 | |
- name: Init environment | |
uses: ./.github/actions/init-environment | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: | | |
**/*.py | |
- name: Run type checker | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: poetry run pyright ${{ steps.changed-files.outputs.all_changed_files }} |