Skip to content

Collecting the scripts into a single commandline program. #54

Collecting the scripts into a single commandline program.

Collecting the scripts into a single commandline program. #54

Workflow file for this run

name: Sanity check
on: [push, pull_request]
jobs:
python-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Upgrade pip
run: |
python3 -m pip install --upgrade pip
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python3 -m pip install -r ./requirements.txt
- name: Install mypy
run: |
python3 -m pip install mypy types-requests
- name: Check with mypy
run: |
python3 -m mypy --no-incremental staffeli_nt