diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 64f539a..c648521 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -18,35 +18,17 @@ jobs: TAG: ${{ github.event.release.tag_name }} run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - - name: Cache Poetry virtualenv - uses: actions/cache@v3 - id: cache - with: - path: ~/.virtualenvs - key: poetry-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - poetry-${{ hashFiles('**/poetry.lock') }} + - name: Install Poetry + run: pipx install poetry - - name: Install poetry - uses: snok/install-poetry@v1 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: - version: 1.2.2 - virtualenvs-create: false - virtualenvs-in-project: false - installer-parallel: true + python-version: 3.12 + cache: 'poetry' - name: Install Python dependencies run: | - sudo apt-get install -y python-setuptools python3-setuptools - pip install poetry - poetry config virtualenvs.create false - poetry export --dev --without-hashes -o requirements.txt - pip install -r requirements.txt poetry version ${{ steps.get_version.outputs.VERSION }} poetry install