Skip to content

Commit

Permalink
Name all steps for improved debugability
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Sep 7, 2024
1 parent 6befe45 commit b761a22
Showing 1 changed file with 94 additions and 49 deletions.
143 changes: 94 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
name: Misc check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -28,8 +30,10 @@ jobs:
name: Packaging test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -41,10 +45,12 @@ jobs:
name: Format check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -56,8 +62,10 @@ jobs:
name: Type check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -69,10 +77,12 @@ jobs:
name: Changed files test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -84,8 +94,10 @@ jobs:
name: Lint check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -99,8 +111,10 @@ jobs:
name: Doc test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -114,8 +128,10 @@ jobs:
name: Notebook formatting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -127,7 +143,8 @@ jobs:
name: Shell check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run shellcheck
Expand All @@ -136,8 +153,10 @@ jobs:
name: Isolated pytest Ubuntu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -152,12 +171,15 @@ jobs:
python-version: ['3.10', '3.11', '3.12']
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- uses: actions/cache@v4
- name: Set up caching of dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
Expand All @@ -175,8 +197,10 @@ jobs:
name: Check consistency of requirements
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -189,10 +213,12 @@ jobs:
name: Build protos
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
Expand All @@ -205,14 +231,17 @@ jobs:
name: Coverage check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- uses: actions/cache@v4
- name: Set up caching of dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
Expand All @@ -237,12 +266,15 @@ jobs:
python-version: ['3.10', '3.11', '3.12']
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- uses: actions/cache@v4
- name: Set up caching of dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
Expand All @@ -263,12 +295,15 @@ jobs:
# TODO(#6577): upgrade to macos-latest when it runs Python 3.10
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- uses: actions/cache@v4
- name: Set up caching of dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
Expand All @@ -288,18 +323,21 @@ jobs:
partition: [partition-0, partition-1, partition-2, partition-3]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check out source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/isolated-base.env.txt
- name: Notebook tests
run: check/pytest -n auto -m slow dev_tools/notebooks/isolated_notebook_test.py -k ${{matrix.partition}}
- uses: actions/upload-artifact@v4
- name: Persist the outputs
uses: actions/upload-artifact@v4
if: failure()
with:
name: notebook-outputs
Expand All @@ -308,16 +346,19 @@ jobs:
name: Notebook Tests against PR
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: pip install -r dev_tools/requirements/notebooks.env.txt
- name: Notebook tests
run: check/pytest -n auto -m slow dev_tools/notebooks/notebook_test.py
- uses: actions/upload-artifact@v4
- name: Persist the outputs
uses: actions/upload-artifact@v4
if: failure()
with:
name: notebook-outputs
Expand All @@ -326,8 +367,9 @@ jobs:
name: Bundle file consistency
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install node and npm
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: '20.17.0'
Expand All @@ -339,8 +381,9 @@ jobs:
name: Typescript lint check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install node and npm
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: '20.17.0'
Expand All @@ -352,8 +395,9 @@ jobs:
name: Typescript tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install node and npm
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: '20.17.0'
Expand All @@ -367,8 +411,9 @@ jobs:
name: Typescript tests coverage
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install node and npm
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Node environment
uses: actions/setup-node@v4
with:
node-version: '20.17.0'
Expand Down

0 comments on commit b761a22

Please sign in to comment.