forked from rcbops/rpc-maas
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 936 Bytes
/
pep8-workflow.yml
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
name: pep8-workflow
on:
workflow_dispatch:
pull_request:
branches:
- master
env:
# Global env vars used on all jobs
REPO_URL: 'https://github.com/rcbops/rpc-maas'
RE_JOB_BRANCH: ${{ github.event.pull_request.head.sha }}
RE_JOB_ACTION: 'tox-test'
# Per-Job env var info:
# RE_JOB_SCENARIO: 'Linting scenarios used by rpc-maas test scripts. Values(ansible-lint,ansible-syntax,bandit,bashate,docs,pep8,releasenotes)'
jobs:
pep8:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out the repo on the runner's workspace
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run the tox test for this scenario
run: ./gating/github_action_scripts/linting_run.sh
env:
RE_JOB_SCENARIO: "pep8"