diff --git a/.github/actions/setup-uv/action.yml b/.github/actions/setup-uv/action.yml index 1b75878f3..d845bd799 100644 --- a/.github/actions/setup-uv/action.yml +++ b/.github/actions/setup-uv/action.yml @@ -1,6 +1,11 @@ name: "Setup uv" description: "Checks out code, installs uv, and sets up Python environment" +inputs: + python-version: + description: "Python version to use" + default: "3.12" + runs: using: "composite" steps: @@ -13,7 +18,7 @@ runs: - name: "Set up Python" uses: actions/setup-python@v5 with: - python-version-file: "pyproject.toml" + python-version: ${{ inputs.python-version }} - name: Restore uv cache uses: actions/cache@v4 diff --git a/.github/workflows/python_test.yml b/.github/workflows/python_test.yml index d0f0dfeeb..3d6fbb47f 100644 --- a/.github/workflows/python_test.yml +++ b/.github/workflows/python_test.yml @@ -57,7 +57,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v5 with: - python-version-file: "pyproject.toml" + python-version: ${{ matrix.python-version }} - name: Restore uv cache uses: actions/cache@v4 with: @@ -94,7 +94,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v5 with: - python-version-file: "pyproject.toml" + python-version: ${{ matrix.python-version }} - name: Restore uv cache uses: actions/cache@v4 with: diff --git a/.github/workflows/store_pytest_durations.yml b/.github/workflows/store_pytest_durations.yml index 89c28e44c..c7a11e76a 100644 --- a/.github/workflows/store_pytest_durations.yml +++ b/.github/workflows/store_pytest_durations.yml @@ -17,6 +17,9 @@ jobs: contents: write pull-requests: write env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }} + ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }} UV_CACHE_DIR: /tmp/.uv-cache steps: - uses: actions/checkout@v4 @@ -28,7 +31,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v5 with: - python-version-file: "pyproject.toml" + python-version: "3.12" - name: Restore uv cache uses: actions/cache@v4 with: