Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Add style & type checking action #33

Merged
merged 4 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 37 additions & 0 deletions .github/workflows/check_code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check Code
on:
pull_request:

jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- uses: snok/install-poetry@v1.3.3
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Cache Dependencies
uses: actions/cache@v2
id: cache-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies if cache doesn't hit
if: steps.cache-dependencies.cache-hit != 'true'
run: poetry install

- name: Check Code Styles
run: poetry run invoke check-code-style

- name: Check Types
run: poetry run invoke check-types
Loading