fix typo in publish workflow #184
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: | |
push: | |
branches: [ develop ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ develop ] | |
schedule: | |
- cron: '30 22 15 * *' | |
jobs: | |
flake8: | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install flake8 | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install flake8 | |
python --version | |
pip list | |
- name: Run flake8 | |
run: flake8 -v src tests docs | |
bandit: | |
name: bandit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install bandit | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install bandit | |
- name: Run bandit | |
# "B101:assert_used" is allowed in tests. | |
run: | | |
bandit -r src docs | |
bandit -r tests --skip B101 |