Skip to content

Commit

Permalink
uses install poetry action to get poetry 1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Jan 8, 2025
1 parent d29dee6 commit be8936f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ jobs:
target: aarch64
manylinux: musllinux_1_1

# - os: windows
# ls: dir
# interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
# - os: windows
# ls: dir
# target: aarch64
# interpreter: 3.11 3.12

- os: windows
target: x86_64
interpreter: pypy3.9 pypy3.10
Expand All @@ -65,7 +57,6 @@ jobs:
target: aarch64
interpreter: 3.11 3.12 3.13


- os: macos
target: x86_64
- os: macos
Expand Down Expand Up @@ -149,16 +140,16 @@ jobs:
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
# - name: Create Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: false
# prerelease: steps.check-version.outputs.prerelease == 'true'

# - name: Publish to PyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry publish
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ jobs:
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
- name: Install poetry
run: |
curl -fsS https://install.python-poetry.org | python - --preview -y
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
version: 1.8.5

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
Expand Down

0 comments on commit be8936f

Please sign in to comment.