diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f2e3853..f9db3e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,18 +22,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install poetry - run: pipx install poetry - - - name: Set up Python 3.12 - uses: actions/setup-python@v5 + - name: Setup and Cache Python Poetry + uses: packetcoders/action-setup-cache-python-poetry@v1.2.0 with: python-version: "3.12" - allow-prereleases: false - cache: "poetry" - - - name: Install dependencies - run: poetry install --sync --no-interaction + poetry-version: "1.8.3" + install-args: --all-extras - name: Package project run: poetry build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5c6f5b..99d27c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,18 +20,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install poetry - run: pipx install poetry - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + - name: Setup and Cache Python Poetry + uses: packetcoders/action-setup-cache-python-poetry@v1.2.0 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - cache: "poetry" - - - name: Install dependencies - run: poetry install --sync --no-interaction + poetry-version: "1.8.3" + install-args: --all-extras - name: Lint with flake8 if: matrix.python-version == '3.12'