-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1020 Bytes
/
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
---
name: Python Coding Standards
on:
pull_request:
types:
- opened
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
name: Run Python coding standards check.
steps:
- name: Build and install Python dependencies
run: >
$(command -v wget) --no-check-certificate
https://repo.anaconda.com/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh
$(command -v sh) Miniconda3-py39_4.10.3-Linux-x86_64.sh -b -p miniconda
$(command -v python) -m pip install --upgrade pip
$(command -v pip) install pycodestyle
- name: Checkout ufs_obs.
uses: actions/checkout@v2
with:
path: ufs_obs
- name: Run pycodestyle application.
run: >
cd "${GITHUB_WORKSPACE}/ufs_obs"
$(command -v pycodestyle) -v --config "${GITHUB_WORKSPACE}/ufs_obs/.pycodestyle" sorc
$(command -v pycodestyle) -v --config "${GITHUB_WORKSPACE}/ufs_obs/.pycodestyle" sorc/obsio