From 81bc6186c6f4b7cf4511bbeb76f4eff3f756b8d7 Mon Sep 17 00:00:00 2001 From: Byeonghoon Yoo Date: Tue, 23 May 2023 00:58:15 +0900 Subject: [PATCH] ci(gha): fix --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 21 ++++++--------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2c45a1b..d41aac1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -8,7 +8,7 @@ jobs: CD: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - name: Install pypa/build run: >- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a4e17b..d19b90f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,26 +15,17 @@ jobs: matrix: python_ver: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] steps: - - uses: actions/checkout@v2 - - name: Setup Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v3 + - name: Install poetry + run: pipx install poetry + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python_ver }} - - uses: actions/cache@v3 - with: - path: | - ~/.cache/pypoetry/artifacts - ~/.cache/pypoetry/cache/repositories - ~/.cache/pip - poetry.lock - key: ${{ matrix.python_ver }}-pip-${{ hashFiles('pyproject.toml') }} - restore-keys: | - ${{ matrix.python_ver }}-pip- - - uses: abatilo/actions-poetry@v2.3.0 + cache: 'poetry' - name: Install dependencies run: | poetry lock - poetry install --remove-untracked + poetry install --no-root --sync - name: Lint with flake8 run: | poetry run flake8 .