This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
Fix tox using PEP 517 compliant build backend #645
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: Lint | |
on: [push] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libkrb5-dev krb5-user | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so | |
- name: Install tox | |
run: pip install tox==3.24.5 | |
- name: Check that code is formatted with black | |
run: tox -e black | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libkrb5-dev krb5-user | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so | |
- name: Install tox | |
run: pip install tox==3.24.5 | |
- name: Check that imports are formatted with isort | |
run: tox -e isort | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc libkrb5-dev krb5-user | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /usr/lib/libgssapi_krb5.so | |
- name: Install tox | |
run: pip install tox==3.24.5 | |
- name: Check that imports are formatted with isort | |
run: tox -e flake8 |