Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit b45e859

Browse files
committed
ci: nuitka build test
1 parent 39a2100 commit b45e859

11 files changed

+2284
-2251
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* text=lf
1+
* text=lf

.github/workflows/nuitka.yml

+70-64
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,70 @@
1-
name: Build & Publish Binaries
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
8-
9-
jobs:
10-
build:
11-
strategy:
12-
matrix:
13-
os: [windows-latest]
14-
15-
runs-on: ${{ matrix.os }}
16-
17-
steps:
18-
- name: Check-out repository
19-
uses: actions/checkout@v4
20-
21-
- name: Install Poetry
22-
uses: snok/install-poetry@v1
23-
24-
- name: Export dependencies
25-
run: C:\Users\runneradmin\.local\bin\poetry export -f requirements.txt --output requirements.txt --without-hashes
26-
27-
- name: Setup Python
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: '3.11'
31-
cache: 'pip'
32-
cache-dependency-path: |
33-
**/requirements*.txt
34-
35-
- name: Install Dependencies
36-
run: |
37-
pip install -r requirements.txt
38-
39-
- run: python -m site
40-
41-
- name: Build Executable
42-
uses: Nuitka/[email protected]
43-
with:
44-
nuitka-version: main
45-
script-name: ./drumpy/cli.py
46-
standalone: true
47-
onefile: false
48-
include-plugin-directory: "C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\pygame_gui\\data"
49-
include-data-dir: ./DrumSamples=./DrumSamples
50-
include-data-files: |
51-
./*.task=./
52-
C:/hostedtoolcache/windows/Python/3.11.9/x64/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
53-
C:/hostedtoolcache/windows/Python/3.11.9/x64/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
54-
enable-console: true
55-
enable-plugins: no-qt
56-
company-name: Mouwrice
57-
product-name: DrumPy
58-
product-version: 0.1.0
59-
60-
- name: Upload Artifacts
61-
uses: actions/upload-artifact@v4
62-
with:
63-
name: ${{ runner.os }} Build
64-
path: build/
1+
name: Build & Publish Binaries
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- name: Check-out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.11'
28+
29+
- name: Install Poetry
30+
uses: snok/install-poetry@v1
31+
with:
32+
virtualenvs-create: true
33+
virtualenvs-in-project: true
34+
35+
- name: Load cached venv
36+
id: cached-pip-wheels
37+
uses: actions/cache@v3
38+
with:
39+
path: ~/.cache
40+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
41+
- name: Install dependencies
42+
run: poetry install --no-interaction --no-root
43+
- name: Install library
44+
run: poetry install --no-interaction
45+
- run: source $VENV
46+
47+
- name: Build Executable
48+
uses: Nuitka/[email protected]
49+
with:
50+
nuitka-version: main
51+
script-name: ./drumpy/cli.py
52+
standalone: true
53+
onefile: false
54+
include-plugin-directory: .venv/Lib/site-packages/pygame_gui/data/
55+
include-data-dir: ./DrumSamples=./DrumSamples
56+
include-data-files: |
57+
./*.task=./
58+
.venv/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
59+
.venv/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
60+
enable-console: true
61+
enable-plugins: no-qt
62+
company-name: Mouwrice
63+
product-name: DrumPy
64+
product-version: 0.1.0
65+
66+
- name: Upload Artifacts
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: Drumpy-${{ runner.os }}
70+
path: build/cli.dist

.github/workflows/release-please.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
on:
2-
push:
3-
branches:
4-
- main
5-
6-
permissions:
7-
contents: write
8-
pull-requests: write
9-
10-
name: Release Please
11-
12-
jobs:
13-
release-please:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: google-github-actions/release-please-action@v4
17-
with:
18-
# this assumes that you have created a personal access token
19-
# (PAT) and configured it as a GitHub action secret named
20-
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
21-
token: ${{ secrets.RELEASE_PLEASE_PAT }}
22-
# this is a built-in strategy in release-please, see "Action Inputs"
23-
# for more options
24-
release-type: python
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: Release Please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v4
17+
with:
18+
# this assumes that you have created a personal access token
19+
# (PAT) and configured it as a GitHub action secret named
20+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
21+
token: ${{ secrets.RELEASE_PLEASE_PAT }}
22+
# this is a built-in strategy in release-please, see "Action Inputs"
23+
# for more options
24+
release-type: python

.github/workflows/ruff.yml

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
name: Ruff
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
8-
jobs:
9-
ruff:
10-
runs-on: ubuntu-latest
11-
name: Ruff
12-
13-
steps:
14-
- name: Check-out repository
15-
uses: actions/[email protected]
16-
17-
- name: Install Poetry
18-
uses: snok/install-poetry@v1
19-
20-
- name: Export dependencies
21-
run: poetry export -f requirements.txt --output requirements.txt --without-hashes
22-
23-
- name: Setup Python
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: '3.11'
27-
cache: 'pip'
28-
cache-dependency-path: |
29-
**/requirements*.txt
30-
31-
- name: Install Dependencies
32-
run: |
33-
pip install -r requirements.txt
34-
35-
- uses: chartboost/ruff-action@v1
36-
name: Ruff Lint
37-
38-
- uses: chartboost/ruff-action@v1
39-
name: Ruff Format Check
40-
with:
41-
args: 'format --check'
1+
name: Ruff
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
ruff:
10+
runs-on: ubuntu-latest
11+
name: Ruff
12+
13+
steps:
14+
- name: Check-out repository
15+
uses: actions/[email protected]
16+
17+
- name: Install Poetry
18+
uses: snok/install-poetry@v1
19+
20+
- name: Export dependencies
21+
run: poetry export -f requirements.txt --output requirements.txt --without-hashes
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.11'
27+
cache: 'pip'
28+
cache-dependency-path: |
29+
**/requirements*.txt
30+
31+
- name: Install Dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
35+
- uses: chartboost/ruff-action@v1
36+
name: Ruff Lint
37+
38+
- uses: chartboost/ruff-action@v1
39+
name: Ruff Format Check
40+
with:
41+
args: 'format --check'

CHANGELOG.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# Changelog
2-
3-
## [0.1.0](https://github.com/Mouwrice/DrumPy/compare/v0.0.1...v0.1.0) (2024-04-24)
4-
5-
6-
### Features
7-
8-
* add drum back ([de38177](https://github.com/Mouwrice/DrumPy/commit/de3817793984798ca07988fdd7fb2ceb1042f4f2))
9-
* build linux binary script ([fa4fbc9](https://github.com/Mouwrice/DrumPy/commit/fa4fbc9a01be0269ffe7409ef65802f50f4d8c04))
10-
* cli ([7a7cacb](https://github.com/Mouwrice/DrumPy/commit/7a7cacb53abcba28d0b719f9af0a04dc6fa33419))
11-
* init result processor ([a27bfe8](https://github.com/Mouwrice/DrumPy/commit/a27bfe8e7fefb897e7a4dd5bb38c036c58566c19))
12-
* interpolate between predicted and actual landmark position ([0cc5fa6](https://github.com/Mouwrice/DrumPy/commit/0cc5fa674d07efed3df817151fcb78566bfe6bf0))
13-
* normalized vs world coords ([b4abab9](https://github.com/Mouwrice/DrumPy/commit/b4abab9f1c1fb135f64fd191830a36786e1f0d52))
14-
* parameter fine tuning ([c83350e](https://github.com/Mouwrice/DrumPy/commit/c83350eb103203cfd13d001a11df267c446d504b))
15-
* predict and smooth results ([9dc8611](https://github.com/Mouwrice/DrumPy/commit/9dc8611357221844ec8ecdacfb5ead9874d37a68))
16-
* qtm label to marker enum ([d4912ba](https://github.com/Mouwrice/DrumPy/commit/d4912babb3b880d87ef9d109b9e222e446fd64e8))
17-
* square input ratio ([2777a3c](https://github.com/Mouwrice/DrumPy/commit/2777a3c50d7c034ddf88453d0cab895209b9649c))
18-
19-
20-
### Bug Fixes
21-
22-
* **deps:** update dependency pygame-gui to v0.6.10 ([#36](https://github.com/Mouwrice/DrumPy/issues/36)) ([a268e7e](https://github.com/Mouwrice/DrumPy/commit/a268e7e548dcd581bc9b43b322d059c894951f4a))
23-
* **deps:** use poetry build system ([e8f7230](https://github.com/Mouwrice/DrumPy/commit/e8f72308161b0fa58296607427febdb21f6eb455))
24-
* fix refactor issues ([4bed9dd](https://github.com/Mouwrice/DrumPy/commit/4bed9ddb551fffc511b1779aec962c996b7a17c6))
25-
* fix writing to file ([bd9ee9a](https://github.com/Mouwrice/DrumPy/commit/bd9ee9a032fdc344f15b2de408e84fbbaef10672))
26-
* intellij stuff ([f93571c](https://github.com/Mouwrice/DrumPy/commit/f93571c58e588dbb5a080055e74316a45fd4dd16))
27-
* processing ([c513005](https://github.com/Mouwrice/DrumPy/commit/c5130056ff44817c7052019cad088b723fad4f39))
1+
# Changelog
2+
3+
## [0.1.0](https://github.com/Mouwrice/DrumPy/compare/v0.0.1...v0.1.0) (2024-04-24)
4+
5+
6+
### Features
7+
8+
* add drum back ([de38177](https://github.com/Mouwrice/DrumPy/commit/de3817793984798ca07988fdd7fb2ceb1042f4f2))
9+
* build linux binary script ([fa4fbc9](https://github.com/Mouwrice/DrumPy/commit/fa4fbc9a01be0269ffe7409ef65802f50f4d8c04))
10+
* cli ([7a7cacb](https://github.com/Mouwrice/DrumPy/commit/7a7cacb53abcba28d0b719f9af0a04dc6fa33419))
11+
* init result processor ([a27bfe8](https://github.com/Mouwrice/DrumPy/commit/a27bfe8e7fefb897e7a4dd5bb38c036c58566c19))
12+
* interpolate between predicted and actual landmark position ([0cc5fa6](https://github.com/Mouwrice/DrumPy/commit/0cc5fa674d07efed3df817151fcb78566bfe6bf0))
13+
* normalized vs world coords ([b4abab9](https://github.com/Mouwrice/DrumPy/commit/b4abab9f1c1fb135f64fd191830a36786e1f0d52))
14+
* parameter fine tuning ([c83350e](https://github.com/Mouwrice/DrumPy/commit/c83350eb103203cfd13d001a11df267c446d504b))
15+
* predict and smooth results ([9dc8611](https://github.com/Mouwrice/DrumPy/commit/9dc8611357221844ec8ecdacfb5ead9874d37a68))
16+
* qtm label to marker enum ([d4912ba](https://github.com/Mouwrice/DrumPy/commit/d4912babb3b880d87ef9d109b9e222e446fd64e8))
17+
* square input ratio ([2777a3c](https://github.com/Mouwrice/DrumPy/commit/2777a3c50d7c034ddf88453d0cab895209b9649c))
18+
19+
20+
### Bug Fixes
21+
22+
* **deps:** update dependency pygame-gui to v0.6.10 ([#36](https://github.com/Mouwrice/DrumPy/issues/36)) ([a268e7e](https://github.com/Mouwrice/DrumPy/commit/a268e7e548dcd581bc9b43b322d059c894951f4a))
23+
* **deps:** use poetry build system ([e8f7230](https://github.com/Mouwrice/DrumPy/commit/e8f72308161b0fa58296607427febdb21f6eb455))
24+
* fix refactor issues ([4bed9dd](https://github.com/Mouwrice/DrumPy/commit/4bed9ddb551fffc511b1779aec962c996b7a17c6))
25+
* fix writing to file ([bd9ee9a](https://github.com/Mouwrice/DrumPy/commit/bd9ee9a032fdc344f15b2de408e84fbbaef10672))
26+
* intellij stuff ([f93571c](https://github.com/Mouwrice/DrumPy/commit/f93571c58e588dbb5a080055e74316a45fd4dd16))
27+
* processing ([c513005](https://github.com/Mouwrice/DrumPy/commit/c5130056ff44817c7052019cad088b723fad4f39))

0 commit comments

Comments
 (0)