Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,25 @@ jobs:
uses: nxt-dev/nxt/.github/workflows/unittests.yml@release
with:
QT_DEPENDENCIES: ${{ inputs.QT_DEPENDENCIES }}
changed-files:
runs-on: ubuntu-latest
name: Check if source actually changed
outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v46.0.5
with:
files: |
nxt/**
nxt_editor/**
build-and-deploy-pypi:
needs: [run-tests]
needs: [run-tests, changed-files]
if: needs.changed-files.outputs.any_changed == 'true'
runs-on: ubuntu-latest
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
Expand Down Expand Up @@ -67,3 +84,11 @@ jobs:
- name: Build package and upload
run: |
python -m nxt.cli -vv exec build/packaging.nxt -s /make_and_upload

skip-build:
name: Skipped build because source did not change
needs: [changed-files]
runs-on: ubuntu-latest
if: needs.changed-files.outputs.any_changed != 'true'
steps:
- run: echo "No changes in nxt or nxt_editor, skipping build and upload to PyPI."
19 changes: 6 additions & 13 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,12 @@ jobs:
sudo apt-get update
sudo apt-get install -y \
libxkbcommon-x11-0 \
libxcb-cursor0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-shape0 \
libxcb-xfixes0 \
libxcb-randr0 \
libxcb-xinerama0 \
libxcb-util1 \
libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 \
libxcb-randr0 libxcb-xinerama0 libxcb-util1 \
libegl1 \
qtbase5-dev qtbase5-dev-tools \
libqt5gui5 libqt5widgets5 libqt5core5a \
xvfb

- name: Ensure PIP
Expand All @@ -77,9 +72,7 @@ jobs:
- name: Run tests with xvfb (Ubuntu + Qt)
if: runner.os == 'Linux' && env.QT_DEPENDENCIES == 'true'
run: |
Xvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
python -m nxt.cli test
xvfb-run -s "-screen 0 1024x768x24" python -m nxt.cli test

- name: Run Unittests from CLI
if: env.QT_DEPENDENCIES != 'true'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
api_version = '{}.{}.{}'.format(api_major, api_minor, api_patch)

setuptools.setup(
name="nxt-core",
name="nxt_core",
version=api_version,
author="The nxt contributors",
author_email="dev@opennxt.dev",
Expand Down