Skip to content

Commit

Permalink
ci: update workflows for new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Sep 17, 2024
1 parent 2b4ccce commit f46874c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
version:
description: 'Dear PyGui Version'
required: false
default: '1.12.0'
default: '2.0.0b'

deploy:
description: 'Deploy (true will deploy to pypi)'
Expand All @@ -41,7 +41,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -68,23 +68,23 @@ jobs:
python -m setup bdist_wheel --plat-name win_amd64 --dist-dir dist
- name: Upload Windows ${{ matrix.python-version }} Wheel
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: windowsbuild${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*.whl
retention-days: 2
overwrite: true

build-mac10-wheels:

runs-on: macos-11
runs-on: macos-12
strategy:
matrix:
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12" ]

steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -108,11 +108,11 @@ jobs:
python -m setup bdist_wheel --plat-name macosx-10.6-x86_64 --dist-dir dist
- name: Upload MacOS 10.15 ${{ matrix.python-version }} Wheel
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: apple10build${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*.whl
retention-days: 2
overwrite: true

build-mac-silicon-wheels:

Expand All @@ -124,7 +124,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -148,11 +148,11 @@ jobs:
python -m setup bdist_wheel --plat-name macosx-13.0-arm64 --dist-dir dist
- name: Upload MacOS ${{ matrix.python-version }} Wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apple10sbuild${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*.whl
retention-days: 2
overwrite: true

build-linux-wheels:

Expand All @@ -166,7 +166,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -192,11 +192,11 @@ jobs:
python -m setup bdist_wheel --plat-name manylinux1_x86_64 --dist-dir dist
- name: Upload Linux ${{ matrix.python-version }} Wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linuxbuild${{ matrix.python-version }}
path: ${{ github.workspace }}/dist/*.whl
retention-days: 2
overwrite: true

deploy-packages:

Expand All @@ -206,7 +206,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v4
Expand All @@ -218,7 +218,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel twine
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: PyPi Deployment
shell: cmd
Expand All @@ -237,4 +237,4 @@ jobs:
python -m twine upload --repository testpypi windowsbuild*/* -u __token__ -p ${{ secrets.TEST_PYPI_PASSWORD }} --skip-existing
python -m twine upload --repository testpypi apple10build*/* -u __token__ -p ${{ secrets.TEST_PYPI_PASSWORD }} --skip-existing
python -m twine upload --repository testpypi apple10sbuild*/* -u __token__ -p ${{ secrets.TEST_PYPI_PASSWORD }} --skip-existing
python -m twine upload --repository testpypi linuxbuild*/* -u __token__ -p ${{ secrets.TEST_PYPI_PASSWORD }} --skip-existing
python -m twine upload --repository testpypi linuxbuild*/* -u __token__ -p ${{ secrets.TEST_PYPI_PASSWORD }} --skip-existing
8 changes: 4 additions & 4 deletions .github/workflows/EmbeddedBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Retrieve submodules
shell: cmd
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Retrieve submodules
run: git submodule update --init --recursive
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Retrieve submodules
run: git submodule update --init --recursive
Expand Down Expand Up @@ -133,4 +133,4 @@ jobs:
cd cmake-build-debug
cmake .. -DMV_TESTS_ONLY=True
cd ..
cmake --build cmake-build-debug --config Debug
cmake --build cmake-build-debug --config Debug
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-20.04
if: ${{! contains(github.event.head_commit.message, '[individual]') || contains(github.event.head_commit.message, '[static analysis]')}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
#with:
# fetch-depth: 1

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Archive code coverage results
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pvs-results
path: /home/runner/work/DearPyGui/DearPyGui/pvs-studio.html
path: /home/runner/work/DearPyGui/DearPyGui/pvs-studio.html
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import shutil
import subprocess

wip_version = "1.11.1"
wip_version = "2.0.0b"

def version_number():
"""This function reads the version number which is populated by github actions"""
Expand Down

0 comments on commit f46874c

Please sign in to comment.