Skip to content

Commit

Permalink
ci: fix step to install python poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed Jul 8, 2024
1 parent 55e56a6 commit 4f43359
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,18 @@ jobs:
fetch-depth: 0
token: ${{ secrets.TRYCERATOPS_GITHUB_TOKEN }}

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install poetry
uses: Gr1N/setup-poetry@v7
shell: bash
run: pipx install poetry

- name: Cache poetry dependencies
uses: actions/cache@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
python-version: "3.10"
cache: poetry

- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry config virtualenvs.create false
poetry install
run: poetry install --with=dev

# Can't use: relekang/python-semantic-release@master because
# it's running Python 3.7, and Tryceratops requires >=3.8
Expand Down

0 comments on commit 4f43359

Please sign in to comment.