145 distance of objects #125
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: linter | |
on: pull_request | |
jobs: | |
linter: | |
name: Lint project files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
# Execute the markdown linter | |
- name: Run the markdown linter | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: peterdavehello/markdownlint:0.32.2 | |
options: -v ${{ github.workspace }}:/md | |
run: | | |
markdownlint . | |
# Execute the python linter (executes even if the previous step failed) | |
- name: Run the python linter | |
if: always() | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: alpine/flake8 | |
options: -v ${{ github.workspace }}:/apps | |
run: | | |
flake8 code |