diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85ac624..e705ac4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,13 +19,17 @@ jobs: key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- + - name: Parse .tool-versions + uses: wistia/parse-tool-versions@v2.0.0 + with: + prefix: 'tool_version_' - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: ${{ env.TOOL_VERSION_PYTHON }} - name: Install poetry uses: abatilo/actions-poetry@v3.0.0 with: - poetry-version: '1.6.1' + poetry-version: ${{ env.TOOL_VERSION_POETRY }} - name: Install pip dependencies run: poetry install - uses: pre-commit/action@v3.0.1 @@ -42,13 +46,17 @@ jobs: key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- + - name: Parse .tool-versions + uses: wistia/parse-tool-versions@v2.0.0 + with: + prefix: 'tool_version_' - uses: actions/setup-python@v5 with: python-version: '${{ matrix.python-version }}' - name: Install poetry uses: abatilo/actions-poetry@v3.0.0 with: - poetry-version: '1.6.1' + poetry-version: ${{ env.TOOL_VERSION_POETRY }} - name: Install pip dependencies run: poetry install - name: Run tests diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 60b9b03..e2caac8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,13 +14,17 @@ jobs: id-token: write steps: - uses: actions/checkout@master + - name: Parse .tool-versions + uses: wistia/parse-tool-versions@v2.0.0 + with: + prefix: 'tool_version_' - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: ${{ env.TOOL_VERSION_PYTHON }} - name: Install poetry uses: abatilo/actions-poetry@v3.0.0 with: - poetry-version: '1.6.1' + poetry-version: ${{ env.TOOL_VERSION_POETRY }} - name: Install pip dependencies run: poetry install - name: Package