Skip to content

Commit

Permalink
update GHAs
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Oct 3, 2023
1 parent 3ec0f6d commit f2af773
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/wipac-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on: [push]

jobs:

py-versions:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- id: versions
uses: WIPACrepo/[email protected]

flake8:
runs-on: ubuntu-latest
steps:
Expand All @@ -16,11 +25,18 @@ jobs:
- uses: WIPACrepo/[email protected]

mypy:
needs: [py-versions]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
py3: ${{ fromJSON(needs.py-versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: WIPACrepo/[email protected]
with:
python-version: ${{ matrix.py3 }}
- uses: WIPACrepo/[email protected]

py-setup:
runs-on: ubuntu-latest
Expand All @@ -42,19 +58,10 @@ jobs:
github.ref_type == 'branch' &&
format('refs/heads/{0}', github.event.repository.default_branch) != github.ref
name: wipac-dev-py-setup-action (only for non-dependabot non-default branches)
uses: WIPACrepo/wipac-dev-py-setup-action@v1.12
uses: WIPACrepo/wipac-dev-py-setup-action@v2.6
with:
base-keywords: "WIPAC IceCube"
py-versions:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- id: versions
uses: WIPACrepo/[email protected]

pip-install:
# FUTURE DEV: this can be expanded to run actual tests instead of just pip installing
needs: [py-versions]
Expand Down Expand Up @@ -82,7 +89,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: python-semantic-release/python-semantic-release@master
- uses: python-semantic-release/python-semantic-release@v7.34.6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
Expand Down

0 comments on commit f2af773

Please sign in to comment.