add pytest test cases with real files #95
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
# | |
# Run static code analysis. | |
# | |
name: Static Analysis | |
on: | |
- push | |
- pull_request | |
jobs: | |
static-check: | |
name: Run Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-dev-${{ hashFiles('setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-dev- | |
- name: Install dependencies | |
run: | | |
pip install virtualenv | |
make venv reqs-install | |
- name: Analysing the code with mypy | |
run: | | |
make mypy | |
- name: Analysing the code with pylint | |
run: | | |
make lint |