diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6e3c608..e08995b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,6 +40,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: pyproject.toml + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4ab7a5a..c74131a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,9 +10,6 @@ on: schedule: - cron: "0 0 * * *" -env: - DEFAULT_PYTHON: "3.11" - jobs: pre-commit: runs-on: "ubuntu-latest" @@ -24,10 +21,10 @@ jobs: - name: Install poetry run: pipx install poetry - - name: Set up Python ${{ env.DEFAULT_PYTHON }} + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ env.DEFAULT_PYTHON }} + python-version-file: pyproject.toml cache: "poetry" - name: Install Python modules @@ -65,10 +62,10 @@ jobs: # steps: # - name: Check out code from GitHub # uses: "actions/checkout@v3" - # - name: Setup Python ${{ env.DEFAULT_PYTHON }} + # - name: Setup Python # uses: "actions/setup-python@v5" # with: - # python-version: ${{ env.DEFAULT_PYTHON }} + # python-version-file: pyproject.toml # - name: Install requirements # run: | # pip install --constraint=.github/workflows/constraints.txt pip