-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.58 KB
/
BuildWindows.yml
File metadata and controls
63 lines (54 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build Python App
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: ["3.13.2"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyaudio
pip install -r requirements.txt
- name: Run tests
run: |
pytest
- name: Build application
# python setup.py sdist bdist_wheel
run: |
python WINDOWSsetup.py
- name: create release
id: create_release
#uses: actions/create-release@v1.1.4
uses: ncipollo/release-action@v1.14.0
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref_name }}
#release_name: ${{ github.event.head_commit.message }}
name: Prerelease ${{ github.ref_name }}
#overwrite: true
body: |
Prerelease ${{ github.ref_name }}
draft: true
prerelease: true
generateReleaseNotes: true
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: built-package-${{ matrix.os }}-py${{ matrix.python-version }}
path: dist/