Skip to content

Commit

Permalink
Set poetry version to 1.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Mar 27, 2023
1 parent 972cd1d commit 1c9e170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: "recursive"

Expand All @@ -20,9 +20,10 @@ jobs:
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}

- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "poetry"

- name: Install and set up Poetry
run: |
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Get full python version
id: full-python-version
Expand All @@ -48,7 +49,7 @@ jobs:
- name: Install Poetry
shell: bash
run: curl -fsSL https://install.python-poetry.org | python - -y
run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.4.0

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
Expand All @@ -64,18 +65,6 @@ jobs:
run: |
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v3
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}

- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: timeout 10s poetry run pip --version || rm -rf .venv

- name: Install dependencies
shell: bash
run: |
Expand Down

0 comments on commit 1c9e170

Please sign in to comment.