Merge pull request #17 from giocaizzi/dependabot/github_actions/actio… #80
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: Documentation Linting | |
on: | |
push: | |
branches: [ main] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
docs-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Set up dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 flake8-rst-docstrings | |
- name: Lint with flake8 for RST erorrs | |
run : flake8 --select=RST pysurfline |