-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.07 KB
/
pycodestyle.yaml
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
31
32
33
34
35
36
37
38
39
40
41
name: pycodestyle
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master and develop branch
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pycodestyle:
name: pycodestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda install -c conda-forge mamba
- name: Install requirements.txt
run: |
pip install -r requirements.txt
- name: Install requirements.test.txt
run: |
pip install -r requirements.test.txt
- name: Check python syntax lib
run: pycodestyle --max-line-length=130 --statistics workflow/scripts