Skip to content

Commit

Permalink
Add GitHub workflows for newsfragment and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Sep 19, 2020
1 parent 6ba319f commit 2adcf7a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ on:

jobs:
lint:

runs-on: ubuntu-20.04
env:
TOXENV: "lint,black,manifest-checker,twine"
TOXENV: "lint,black,twine"

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:

jobs:
test_run:

runs-on: ubuntu-latest

steps:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/static-checkers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Static checkers

on:
push:
branches: [ trunk ]
pull_request:
branches: [ trunk ]

jobs:
static-checkers:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
# Need history on all branches for manifest-checker to work
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
env:
TOXENV: "manifest-checker,newsfragment"
run: |
python -m pip install --upgrade pip tox
tox --notest
- name: Check newsfragment
env:
TOXENV: "newsfragment"
run: |
tox -q
- name: Check manifest-checker
env:
TOXENV: "manifest-checker"
run: |
tox -q

0 comments on commit 2adcf7a

Please sign in to comment.