chore(ci): avoid reinstall pipx and pin poetry version aligned with in api dockerfile (#10426)

This commit is contained in:
Bowen Liang
2024-11-08 17:30:26 +08:00
committed by GitHub
parent 7903ba0297
commit 754bfb181c
7 changed files with 56 additions and 43 deletions

View File

@@ -15,25 +15,15 @@ concurrency:
jobs:
db-migration-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Setup Poetry and Python
uses: ./.github/actions/setup-poetry
with:
python-version: ${{ matrix.python-version }}
cache-dependency-path: |
api/pyproject.toml
api/poetry.lock
- name: Install Poetry
uses: abatilo/actions-poetry@v3
poetry-lockfile: api/poetry.lock
- name: Install dependencies
run: poetry install -C api