Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d89201e

Browse filesBrowse files
authored
Update CI to skip matrix if no job needed (#236)
* Update CI to skip matrix if no job needed * fix up ci.yml * use ubuntu-latest for all workflows
1 parent f5ca367 commit d89201e
Copy full SHA for d89201e

File tree

3 files changed

+5
-3
lines changed
Filter options

3 files changed

+5
-3
lines changed

‎.github/workflows/ci.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+2-1
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ jobs:
4949
- name: Filter projects
5050
id: set-matrix
5151
run: |
52-
echo "::set-output name=projects::$(python ./.github/workflows/filter_projects.py $HOME/files.json)"
52+
echo "projects=$(python ./.github/workflows/filter_projects.py $HOME/files.json)" >> $GITHUB_OUTPUT
5353
5454
ci:
5555
runs-on: ubuntu-latest
5656
needs: filter_projects
5757
timeout-minutes: 60
58+
if: needs.filter_examples.outputs.projects != '[]'
5859
strategy:
5960
# Test for each project in parallel using ci_max and ci_min to ensure
6061
# tested in range of tfx/tensorflow supported versions

‎.github/workflows/ci_examples.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci_examples.yml
+2-1
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ jobs:
4949
- name: Filter example projects
5050
id: set-matrix
5151
run: |
52-
echo "::set-output name=projects::$(python ./.github/workflows/filter_examples.py $HOME/files.json)"
52+
echo "projects=$(python ./.github/workflows/filter_examples.py $HOME/files.json)" >> $GITHUB_OUTPUT
5353
ci-examples:
5454
runs-on: ubuntu-latest
5555
needs: filter_examples
5656
timeout-minutes: 60
57+
if: needs.filter_examples.outputs.projects != '[]'
5758
strategy:
5859
# Test for each project in parallel using ci_max and ci_min to ensure
5960
# tested in range of tfx/tensorflow supported versions

‎.github/workflows/release.yml

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
build-and-publish:
1919
name: Build TFX Addons PyPI package and release to PyPI and TestPyPI
20-
runs-on: ubuntu-18.04
20+
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: Set up Python 3.7

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.