From 24df0f55ec96b1567ed1e1770ec86ff161d397e9 Mon Sep 17 00:00:00 2001 From: killown Date: Sun, 4 Aug 2024 23:12:06 -0300 Subject: [PATCH] Update waypanel.yml --- .github/workflows/waypanel.yml | 36 ++++++++++++++-------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/waypanel.yml b/.github/workflows/waypanel.yml index 2860120..e1caa95 100644 --- a/.github/workflows/waypanel.yml +++ b/.github/workflows/waypanel.yml @@ -1,3 +1,4 @@ +# This workflow will install Python dependencies and lint name: Python package on: @@ -15,16 +16,12 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.x" - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - libgirepository1.0-dev \ - pkg-config \ - python3-dev \ - build-essential - name: Install pypa/build - run: python3 -m pip install build --user + run: >- + python3 -m + pip install + build + --user - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages @@ -34,7 +31,9 @@ jobs: path: dist/ publish-to-pypi: - name: Publish Python 🐍 distribution 📦 to PyPI + name: >- + Publish Python 🐍 distribution 📦 to PyPI + # comment this line to publish every git push if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes environment: name: release @@ -44,24 +43,19 @@ jobs: id-token: write # IMPORTANT: mandatory for trusted publishing steps: - uses: actions/checkout@v3 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: - python-version: "3.x" - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - libgirepository1.0-dev \ - pkg-config \ - python3-dev \ - build-essential + python-version: ${{ matrix.python-version }} - name: Install + if: github.event_name == 'release' run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install setuptools wheel - python3 setup.py install + python3 -m pip install . + python -m pip install -U build + python3 -m build - name: Download all the dists uses: actions/download-artifact@v3 with: