Skip to content
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit test
name: Lint and Type Check

on:
push:
Expand All @@ -15,22 +15,30 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.x
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.10'

- name: Display Python version
run: |
python -c "import sys; print(sys.version)"

- name: Load cached .local
uses: actions/cache@v3
with:
path: /home/runner/.local
key: dotlocal-${{ hashFiles('.github/workflows/lint_type_check.yml') }}

- name: Install poetry
run: pipx install poetry
run: |
curl -sSL https://install.python-poetry.org/ | python -
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Retrieve poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'

- name: Install poetry dependencies
Expand Down