-
Notifications
You must be signed in to change notification settings - Fork 190
30 lines (28 loc) · 876 Bytes
/
style.yaml
File metadata and controls
30 lines (28 loc) · 876 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
26
27
28
29
30
name: style
on:
push:
pull_request:
jobs:
style:
runs-on: ubuntu-latest
# https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.x
cache: pip
cache-dependency-path: |
pyproject.toml
requirements*.txt
setup.py
- name: pip install
run: pip install black isort -r requirements-test.txt
- name: isort
run: isort --check python3/ tests/ || echo FIXME
- name: black
run: black --check --diff python3/ tests/ || echo FIXME
- run: stages=venv,style script/test