forked from Breakthrough-Energy/PowerSimData
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 766 Bytes
/
Copy pathlint.yml
File metadata and controls
25 lines (23 loc) · 766 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
name: Lint
on:
push:
pull_request:
branches:
- develop
jobs:
formatting:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -m pip install --upgrade tox
- run: tox -e checkformatting
flake8:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -m pip install --upgrade tox
- run: tox -e flake8