Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
e60e256 committed Mar 16, 2024
1 parent 5cf7a9f commit 3bfdf13
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ name: Publish Python distribution to TestPyPI
on:
push:
branches:
- 'main'
- 'feature/wheel_with_setup.py_2'


jobs:
build:
name: Build distribution
runs-on: ubuntu-latest


strategy:
matrix:
pyver: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: ${{ matrix.pyver }}

- name: Build command 1
run: cmake . -DCMAKE_BUILD_TYPE=Release
Expand All @@ -27,7 +33,7 @@ jobs:
- name: Install poetry
run: python3 -m pip install poetry
- name: Build a binary wheel and a source tarball with poetry
run: poetry run python3 setup.py bdist_wheel
run: poetry run python setup.py bdist_wheel

- name: Store the distribution packages
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 3bfdf13

Please sign in to comment.