Skip to content

Commit

Permalink
Extract from .tool-versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse committed Jun 7, 2024
1 parent f5fc9f8 commit 238510d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Parse .tool-versions
uses: wistia/[email protected]
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/[email protected]
with:
poetry-version: '1.6.1'
poetry-version: ${{ env.TOOL_VERSION_POETRY }}
- name: Install pip dependencies
run: poetry install
- uses: pre-commit/[email protected]
Expand All @@ -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/[email protected]
with:
prefix: 'tool_version_'
- uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- name: Install poetry
uses: abatilo/[email protected]
with:
poetry-version: '1.6.1'
poetry-version: ${{ env.TOOL_VERSION_POETRY }}
- name: Install pip dependencies
run: poetry install
- name: Run tests
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@master
- name: Parse .tool-versions
uses: wistia/[email protected]
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/[email protected]
with:
poetry-version: '1.6.1'
poetry-version: ${{ env.TOOL_VERSION_POETRY }}
- name: Install pip dependencies
run: poetry install
- name: Package
Expand Down

0 comments on commit 238510d

Please sign in to comment.