Skip to content

Commit

Permalink
Uses matrix strategy for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwill87 committed Feb 24, 2022
1 parent 763389c commit 9f34c79
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ jobs:
build: # -----------------------------------------------------------------------------
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.7", "3.x"]
name: build-v${{matrix.python-version}}

steps:
- name: Checking out Git Commit
uses: actions/checkout@v2

- name: Installing Python 3
- name: Installing Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: ${{matrix.python-version}}
cache: pip
cache-dependency-path: setup.cfg

Expand All @@ -33,12 +38,13 @@ jobs:

lint: # ------------------------------------------------------------------------------
runs-on: ubuntu-latest
needs: build

steps:
- name: Checking out Git Commit
uses: actions/checkout@v2

- name: Installing Python 3
- name: Installing Python
uses: actions/setup-python@v2
with:
python-version: 3.x
Expand All @@ -61,6 +67,8 @@ jobs:

test: # ------------------------------------------------------------------------------
runs-on: ubuntu-latest
needs: build

strategy:
matrix:
python-version: ["3.7", "3.x"]
Expand All @@ -70,7 +78,7 @@ jobs:
- name: Checking out Git Commit
uses: actions/checkout@v2

- name: Installing Python 3
- name: Installing Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
Expand Down Expand Up @@ -125,13 +133,16 @@ jobs:
publish: # ---------------------------------------------------------------------------
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
needs: build lint test
needs:
- build
- lint
- test

steps:
- name: Checking out Git Commit
uses: actions/checkout@v2

- name: Installing Python 3
- name: Installing Python
uses: actions/setup-python@v2
with:
python-version: 3.7
Expand Down

0 comments on commit 9f34c79

Please sign in to comment.