Update .readthedocs.yml #489
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: Style check | |
# Trigger workflow on pull requests or push to master branch. | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
# Checks-out repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v2 | |
- name: Setup Python # Set Python version | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
pip install --upgrade -r requirements.txt | |
- name: Lint with flake8 | |
run: | | |
export PYTHONPATH=$PYTHONPATH:. | |
./tests/run_linter.sh |