-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.43 KB
/
test-deploy.yml
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
name: Test and deploy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and test
run: |
sudo apt-get install -y --no-install-recommends apt-utils ca-certificates gosu sudo git curl
pip install --upgrade pip
pip install virtualenv
virtualenv venv
source venv/bin/activate
make install
make pytest
- name: Build app
run: |
source venv/bin/activate
make app APPNAME="SVMoveEditor"
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false
- name: Upload App
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/SVMoveEditor.app
asset_name: SVMoveEditor.app.zip
asset_content_type: application/zip