gh_action: fix error on new pull request
1. Disable the broken pull request sync temporarily 2. move python lint from travis to github action
This commit is contained in:
parent
d8ab12e2da
commit
58577db086
5 changed files with 56 additions and 43 deletions
6
.github/workflows/issue_comment.yml
vendored
6
.github/workflows/issue_comment.yml
vendored
|
@ -1,12 +1,14 @@
|
||||||
|
name: Sync issue comments to JIRA
|
||||||
|
|
||||||
on: issue_comment
|
on: issue_comment
|
||||||
name: Sync issue and PR comments to JIRA
|
|
||||||
jobs:
|
jobs:
|
||||||
syncToJIRA:
|
syncToJIRA:
|
||||||
name: Sync to JIRA
|
name: Sync to JIRA
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Sync to JIRA
|
- name: Sync issue comments to JIRA
|
||||||
uses: espressif/github-actions/sync_issues_to_jira@master
|
uses: espressif/github-actions/sync_issues_to_jira@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
6
.github/workflows/issues.yml
vendored
6
.github/workflows/issues.yml
vendored
|
@ -1,12 +1,14 @@
|
||||||
on: issues
|
|
||||||
name: Sync issues to JIRA
|
name: Sync issues to JIRA
|
||||||
|
|
||||||
|
on: issues
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syncToJIRA:
|
syncToJIRA:
|
||||||
name: Sync to JIRA
|
name: Sync to JIRA
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Sync to JIRA
|
- name: Sync issues to JIRA project
|
||||||
uses: espressif/github-actions/sync_issues_to_jira@master
|
uses: espressif/github-actions/sync_issues_to_jira@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
16
.github/workflows/pull_request.yml
vendored
16
.github/workflows/pull_request.yml
vendored
|
@ -1,16 +0,0 @@
|
||||||
on: pull_request
|
|
||||||
name: Sync PRs to JIRA
|
|
||||||
jobs:
|
|
||||||
syncToJIRA:
|
|
||||||
name: Sync to JIRA
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: Sync to JIRA
|
|
||||||
uses: espressif/github-actions/sync_issues_to_jira@master
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
JIRA_PASS: ${{ secrets.JIRA_PASS }}
|
|
||||||
JIRA_PROJECT: IDFGH
|
|
||||||
JIRA_URL: ${{ secrets.JIRA_URL }}
|
|
||||||
JIRA_USER: ${{ secrets.JIRA_USER }}
|
|
32
.github/workflows/python_lint.yml
vendored
Normal file
32
.github/workflows/python_lint.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Python CI
|
||||||
|
|
||||||
|
# This workflow will be triggered when a PR modifies some python relevant files
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "*.py"
|
||||||
|
- "requirements.txt"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
python_lint:
|
||||||
|
name: python lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [2.7, 3.5, 3.6, 3.7]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Set up Python environment
|
||||||
|
uses: actions/setup-python@master
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Lint with flake8
|
||||||
|
run: |
|
||||||
|
pip install flake8
|
||||||
|
flake8 . --config=.flake8
|
|
@ -1,7 +0,0 @@
|
||||||
language: python
|
|
||||||
sudo: false
|
|
||||||
python:
|
|
||||||
- "3.4"
|
|
||||||
script:
|
|
||||||
- pip install flake8
|
|
||||||
- travis_wait 20 python -m flake8 --config=.flake8 .
|
|
Loading…
Reference in a new issue