-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.16 KB
/
ci.yml
File metadata and controls
43 lines (41 loc) · 1.16 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
name: Build .exe
on:
push:
branches: [ "main" ]
repository_dispatch:
types: [dispatch-event]
jobs:
build:
name: Build .exe
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: python -m pip install --upgrade pip
- name: Install Open Pectus Engine Manager
run: pip install -e ".[development]"
- name: Type check with pyright
run: pyright
- name: Test with unittest
run: python -m unittest
- name: Build .exe
run: |
pyinstaller pyinstaller.spec
cd dist
move "Open Pectus Engine Manager.exe" ../
# - uses: ncipollo/release-action@v1
# with:
# artifacts: "Open Pectus Engine Manager.exe"
# tag: release
# body: "Download and run `Open Pectus Engine Manager.exe`."
# allowUpdates: true
# makeLatest: true
# omitBodyDuringUpdate: true
# removeArtifacts: true
# replacesArtifacts: true