From cbc9c3f846a626a311f82ff626dda927a0163c19 Mon Sep 17 00:00:00 2001 From: Nick Angelou Date: Wed, 2 Oct 2024 18:42:28 +0800 Subject: [PATCH] fix --- .github/workflows/CD.yml | 10 +++------- .github/workflows/CI.yml | 9 ++------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index e7a2572b..31ffe40d 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -44,12 +44,8 @@ jobs: strategy: matrix: os: [ubuntu-24.04, macos-14] - python-version: - - { X_Y: '3_8', X_DOT_Y: '3.8' } - - { X_Y: '3_9', X_DOT_Y: '3.9' } - - { X_Y: '3_10', X_DOT_Y: '3.10' } - - { X_Y: '3_11', X_DOT_Y: '3.11' } - - { X_Y: '3_12', X_DOT_Y: '3.12' } + # Bazel uses hermetic python, these are just placeholders + python-version: ['3_8', '3_9', '3_10', '3_11', '3_12'] steps: - uses: actions/checkout@v4 # configuring python for bazel abi and platform repo rules @@ -63,7 +59,7 @@ jobs: pip install --upgrade packaging - name: Run tests nix timeout-minutes: 30 - run: bazel test --test_output=all //private_set_intersection/python:test_${{ matrix.python-version.X_Y }} --@rules_python//python/config_settings:python_version=${{ matrix.python-version.X_DOT_Y }} + run: bazel test --test_output=all //private_set_intersection/python:test_${{ matrix.python-version }} Go: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index da326307..82884f24 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -124,12 +124,7 @@ jobs: os: [ubuntu-24.04, macos-14] # Bazel uses hermetic python, these are just placeholders - python-version: - - { X_Y: '3_8', X_DOT_Y: '3.8' } - - { X_Y: '3_9', X_DOT_Y: '3.9' } - - { X_Y: '3_10', X_DOT_Y: '3.10' } - - { X_Y: '3_11', X_DOT_Y: '3.11' } - - { X_Y: '3_12', X_DOT_Y: '3.12' } + python-version: ['3_8', '3_9', '3_10', '3_11', '3_12'] steps: - uses: actions/checkout@v4 # configuring python for bazel abi and platform repo rules @@ -143,7 +138,7 @@ jobs: pip install --upgrade packaging - name: Run tests nix timeout-minutes: 30 - run: bazel test --test_output=all //private_set_intersection/python:test_${{ matrix.python-version.X_Y }} --@rules_python//python/config_settings:python_version=${{ matrix.python-version.X_DOT_Y }} + run: bazel test --test_output=all //private_set_intersection/python:test_${{ matrix.python-version }} Go: needs: changes