Skip to content

Commit

Permalink
Merge branch 'main' into test/sdk-prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Apr 4, 2024
2 parents d6fbd2f + b516ac6 commit 03ca31d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 49 deletions.
14 changes: 0 additions & 14 deletions .github/FUNDING.yml

This file was deleted.

49 changes: 16 additions & 33 deletions .github/workflows/dynamic-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,35 @@
name: Publish with Dynamic Versioning
name: Build

on:
release:
types: [published]
push:

permissions:
contents: write
id-token: write


jobs:
publish:
name: Publish to PyPI
build:
runs-on: ubuntu-latest
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
steps:
- name: Checkout code
uses: actions/checkout@v4.1.2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2

- name: Set up Python
uses: actions/setup-python@v5.1.0
publish:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
python-version: "3.10"

- name: Upgrade pip
run: |
pip install pip
pip --version
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning[plugin]
poetry --version
poetry self show plugins
- name: Build
run: poetry build

- name: Upload wheel to release
uses: svenstaro/upload-release-action@v2
name: Packages
path: dist
- uses: svenstaro/upload-release-action@v2
with:
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Publish
uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run:
runs-on: ubuntu-latest
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
FORCE_COLOR: "1"
NOXSESSION: run
NOXPYTHON: "3.12"
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
needs: run
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
NOXSESSION: ${{ matrix.session }}
NOXPYTHON: ${{ matrix.python-version }}
FORCE_COLOR: "1"
Expand Down

0 comments on commit 03ca31d

Please sign in to comment.