Improve startjob_test #655
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 | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Setup Matchers | |
run: | | |
MATCHERS=.github/workflows/matchers/*.json | |
echo $MATCHERS | |
for matcher in $MATCHERS | |
do | |
echo adding matcher $matcher | |
echo "::add-matcher::${matcher}" | |
done | |
echo "TERM: changing from $TERM -> xterm" | |
export TERM=xterm | |
- name: Install dependencies | |
run: | | |
pip install black==23.* | |
- name: Run black | |
run: | | |
black --check . | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Setup Matchers | |
run: | | |
MATCHERS=.github/workflows/matchers/*.json | |
echo $MATCHERS | |
for matcher in $MATCHERS | |
do | |
echo adding matcher $matcher | |
echo "::add-matcher::${matcher}" | |
done | |
echo "TERM: changing from $TERM -> xterm" | |
export TERM=xterm | |
- name: Install dependencies | |
run: | | |
pip install isort==5.* | |
- name: Run isort | |
run: | | |
isort -c --diff . | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Setup Matchers | |
run: | | |
MATCHERS=.github/workflows/matchers/*.json | |
echo $MATCHERS | |
for matcher in $MATCHERS | |
do | |
echo adding matcher $matcher | |
echo "::add-matcher::${matcher}" | |
done | |
echo "TERM: changing from $TERM -> xterm" | |
export TERM=xterm | |
- name: Install dependencies | |
run: | | |
pip install flake8==6.0.0 | |
- name: Run flake8 | |
run: | | |
flake8 . | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Setup Matchers | |
run: | | |
MATCHERS=.github/workflows/matchers/*.json | |
echo $MATCHERS | |
for matcher in $MATCHERS | |
do | |
echo adding matcher $matcher | |
echo "::add-matcher::${matcher}" | |
done | |
echo "TERM: changing from $TERM -> xterm" | |
export TERM=xterm | |
- name: Install dependencies | |
run: | | |
pip install mypy==1.* types-redis types-requests types-waitress | |
- name: Run mypy | |
run: | | |
mypy --show-column-numbers . |