Skip to content

Commit

Permalink
chain github workflow jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Dec 10, 2020
1 parent 92a382c commit e288d40
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 72 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Run Automated Checks

on:
push:
branches:
- '**'

tags-ignore:
- v*

jobs:
# pre-commit checks
pre-commit:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Run Pre Commit Checks
uses: pre-commit/[email protected]

# black formatter
black-format:
needs: pre-commit
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run Black Formatter Checks
uses: Ahuge/black-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BLACK_ARGS: "."

# pypi build test
build-test:
needs: black-format
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Install Tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Package Build
env:
STACKMANAGER_VERSION: 9999
run: |
python setup.py sdist bdist_wheel
22 changes: 0 additions & 22 deletions .github/workflows/black.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/pre-commit.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/pypi-package-build-test.yml

This file was deleted.

0 comments on commit e288d40

Please sign in to comment.