Skip to content

Commit

Permalink
Update CI to skip matrix if no job needed (#236)
Browse files Browse the repository at this point in the history
* Update CI to skip matrix if no job needed

* fix up ci.yml

* use ubuntu-latest for all workflows
  • Loading branch information
casassg committed Apr 17, 2023
1 parent 7bcf682 commit 6c67533
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ jobs:
- name: Filter projects
id: set-matrix
run: |
echo "::set-output name=projects::$(python ./.github/workflows/filter_projects.py $HOME/files.json)"
echo "projects=$(python ./.github/workflows/filter_projects.py $HOME/files.json)" >> $GITHUB_OUTPUT
ci:
runs-on: ubuntu-latest
needs: filter_projects
timeout-minutes: 60
if: needs.filter_examples.outputs.projects != '[]'
strategy:
# Test for each project in parallel using ci_max and ci_min to ensure
# tested in range of tfx/tensorflow supported versions
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ jobs:
- name: Filter example projects
id: set-matrix
run: |
echo "::set-output name=projects::$(python ./.github/workflows/filter_examples.py $HOME/files.json)"
echo "projects=$(python ./.github/workflows/filter_examples.py $HOME/files.json)" >> $GITHUB_OUTPUT
ci-examples:
runs-on: ubuntu-latest
needs: filter_examples
timeout-minutes: 60
if: needs.filter_examples.outputs.projects != '[]'
strategy:
# Test for each project in parallel using ci_max and ci_min to ensure
# tested in range of tfx/tensorflow supported versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
build-and-publish:
name: Build TFX Addons PyPI package and release to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
Expand Down

0 comments on commit 6c67533

Please sign in to comment.