-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.09 KB
/
ci-test.yml
File metadata and controls
45 lines (37 loc) · 1.09 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
# This workflow will build python files to exe
# But only upload this file as artifacts
# This workflow and whole this branch created only for tests
# Please, don't download artifacts, it's not releases at all!
name: CI Tests
on:
push:
branches: [ CI-test ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install py2exe
- name: Setup PyWin32
run: python "$env:pythonLocation/Scripts/pywin32_postinstall.py" -install
- name: Convert python files to exe using py2exe
run: python setup.py py2exe
- name: Compress files
uses: vimtor/action-zip@v1
with:
files: dist/
dest: test_results.zip
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
name: test_results
path: ./test_results.zip
retention-days: 1