Skip to content

Commit

Permalink
Updated workflow to new test structure
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Oct 17, 2020
1 parent f176f3d commit c98f728
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push, pull_request]

jobs:
flake8:
name: Run Quality Assurance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,9 +17,10 @@ jobs:
pip install flake8
- name: Lint with flake8
run: |
flake8 holidays tests.py
flake8 holidays tests
test:
name: "Test: py${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs: [flake8]
strategy:
Expand Down Expand Up @@ -52,6 +54,7 @@ jobs:
name: ${{ matrix.os }}-py${{ matrix.python-version }}

deploy:
name: Upload new version to PyPi
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: [test]
Expand Down

0 comments on commit c98f728

Please sign in to comment.