add code coverage on tests. #17
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
name: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
flake8: | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache venv | |
uses: actions/cache@v2 | |
with: | |
path: venv | |
key: lintenv-flake8 | |
- name: Install Dependencies | |
run: | | |
python3 -m venv venv | |
. venv/bin/activate | |
pip install -U pip flake8 | |
- name: Flake8 test | |
run: | | |
. venv/bin/activate | |
flake8 flameshow | |
spell: | |
name: Spell Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: codespell-project/actions-codespell@v2 | |
with: | |
check_filenames: true | |
skip: "*.log,./tests/pprof_data/*,poetry.lock" | |
- uses: actions/setup-python@v4 | |
with: | |
ignore_words_list: hello,world | |
python-version: "3.10" | |
architecture: "x64" | |
black: | |
name: black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache venv | |
uses: actions/cache@v2 | |
with: | |
path: venv | |
key: lintenv-black | |
- name: Install Dependencies | |
run: | | |
python3 -m venv venv | |
. venv/bin/activate | |
pip install -U pip black | |
- name: Black test | |
run: | | |
. venv/bin/activate | |
black --check . |