mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Update workflows
This commit is contained in:
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
@@ -8,26 +8,35 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHON_VERSION: "3.11"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
uses: ./.github/workflows/test.yml
|
||||||
|
with:
|
||||||
|
python-version: $PYTHON_VERSION
|
||||||
|
os: ${{ matrix.os }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
name: Checkout
|
name: Checkout
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
name: Setup Python
|
name: Setup Python
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: $PYTHON_VERSION
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install .[build]
|
pip install .[build]
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pyinstaller dyn2py.spec
|
run: pyinstaller dyn2py.spec
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
name: Upload artifact
|
name: Upload artifact
|
||||||
with:
|
with:
|
||||||
@@ -55,4 +64,23 @@ jobs:
|
|||||||
files: dyn2py.exe
|
files: dyn2py.exe
|
||||||
body: ${{ steps.modified.outputs.log }}
|
body: ${{ steps.modified.outputs.log }}
|
||||||
|
|
||||||
# TODO: pip
|
pip:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: release
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
name: Setup Python
|
||||||
|
with:
|
||||||
|
python-version: $PYTHON_VERSION
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install build
|
||||||
|
- name: Build package
|
||||||
|
run: python -m build
|
||||||
|
- name: Publish to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
reusable_workflow_job:
|
test:
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
2
TODO.md
2
TODO.md
@@ -14,7 +14,7 @@
|
|||||||
- [x] Tests on Linux
|
- [x] Tests on Linux
|
||||||
- [x] Tests on Windows
|
- [x] Tests on Windows
|
||||||
- [x] Windows Build
|
- [x] Windows Build
|
||||||
- [ ] Pip
|
- [x] Pip
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "dyn2py"
|
name = "dyn2py"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
description = "Extract python code from Dynamo graphs"
|
description = "Extract python code from Dynamo graphs"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
@@ -11,7 +11,7 @@ license = { file = "LICENSE" }
|
|||||||
authors = [{ name = "infeeeee", email = "gyetpet@mailbox.org" }]
|
authors = [{ name = "infeeeee", email = "gyetpet@mailbox.org" }]
|
||||||
maintainers = [{ name = "infeeeee", email = "gyetpet@mailbox.org" }]
|
maintainers = [{ name = "infeeeee", email = "gyetpet@mailbox.org" }]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 4 - Beta",
|
||||||
"Environment :: Console",
|
"Environment :: Console",
|
||||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||||
]
|
]
|
||||||
@@ -23,7 +23,6 @@ build = ["pyinstaller"]
|
|||||||
doc = ["pdoc"]
|
doc = ["pdoc"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
homepage = "https://github.com/infeeeee/dyn2py"
|
|
||||||
documentation = "https://infeeeee.github.io/dyn2py"
|
documentation = "https://infeeeee.github.io/dyn2py"
|
||||||
repository = "https://github.com/infeeeee/dyn2py"
|
repository = "https://github.com/infeeeee/dyn2py"
|
||||||
changelog = "https://github.com/infeeeee/dyn2py/releases"
|
changelog = "https://github.com/infeeeee/dyn2py/releases"
|
||||||
|
|||||||
Reference in New Issue
Block a user