-
Notifications
You must be signed in to change notification settings - Fork 51
35 lines (32 loc) · 878 Bytes
/
python-lint.yml
File metadata and controls
35 lines (32 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Lint Python Code Snippets
concurrency:
group: pullrequest-untrusted-pythonlint-${{ github.event.number }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
jobs:
python_lint:
name: Check Python snippets in Markdown files
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Upgrade pip
run:
pip install --upgrade pip
- name: Create virtual environment
run:
python3 -m venv env
- name: Use virtual environment
run:
source env/bin/activate
- name: Install Flake8 Markdown linter
run:
pip install flake8-markdown
- name: Markdown Lint
run: flake8-markdown "docs/**/*.md"