From 2fba973bcb1d301c0331cbffa4c7592a6b079236 Mon Sep 17 00:00:00 2001 From: Matej Aleksandrov Date: Fri, 20 Nov 2026 07:17:41 -0800 Subject: [PATCH] Update GitHub Actions CI to test on Python 3.11 with updated `actions/checkout` (v7.0.1), `actions/setup-python` (v7.1.0), and `uv` for dependency installation. PiperOrigin-RevId: 1026458035 --- .github/workflows/actions.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3fe79f33..943bfcef 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -14,23 +14,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8] + python-version: ['3.11'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install flake8 pytest mock - - name: Install tensorflow cloud from setup - run: | - pip install src/python/. - pip install nbconvert + python -m pip install --upgrade pip uv + python -m uv pip install --system --python "$(which python)" flake8 pytest mock nbconvert src/python/. - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names