Skip to content

Commit

Permalink
Fix #171: Simplify GitHub CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 26, 2020
1 parent 0cb9c40 commit e9479f2
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ on:


jobs:

pre_job:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
paths_ignore: '["CHANGES/**", "CHANGES.rst", "LICENSE.txt", "README.rst", "tools/**"]'
if: github.event_name != 'push' || contains(github.ref, 'refs/tags/')

lint:
name: Linter
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,8 +75,7 @@ jobs:
test:
name: Test
needs: [lint, pre_job]
if: needs.pre_job.outputs.should_skip == 'false'
needs: [lint]
strategy:
matrix:
pyver: [3.6, 3.7, 3.8, 3.9]
Expand Down Expand Up @@ -158,9 +143,8 @@ jobs:

test-summary:
name: Test matrix status
if: needs.pre_job.outputs.should_skip == 'false' && always()
runs-on: ubuntu-latest
needs: [pre_job, test]
needs: [test]
steps:
- name: Check build matrix status
if: needs.test.result != 'success'
Expand Down

0 comments on commit e9479f2

Please sign in to comment.