Pin pytest to latest version 8.3.4 #282
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: Linting | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: bahmutov/npm-install@v1 | |
- run: npm run lint | |
isort: | |
name: Check import sorting | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
sudo apt-get update | |
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- run: | | |
pip install isort | |
- run: | | |
isort --check --diff djadyen | |
black: | |
name: Check code formatting with black | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
sudo apt-get update | |
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- run: | | |
pip install black | |
- run: | | |
black --check --diff djadyen |