mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 19:20:07 +01:00
29 lines
587 B
YAML
29 lines
587 B
YAML
name: Lint
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
run-linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Install Python dependencies
|
|
run: python -m pip install black flake8
|
|
|
|
- name: Run linters
|
|
uses: wearerequired/lint-action@v1
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
# Enable linters
|
|
black: true
|
|
flake8: true
|