-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (56 loc) · 1.44 KB
/
main.yml
File metadata and controls
58 lines (56 loc) · 1.44 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
name: Workflow
on: push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: |
python -m pip install poetry
poetry install
poetry build
poetry run pyinstaller ./roverpro/pitstop.py --onefile --hidden-import='pkg_resources.py2_warn'
- uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}
path: dist/
test:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/download-artifact@v2
with:
name: ${{ runner.os }}
path: dist
- if: runner.os != 'Windows'
run: chmod +x dist/pitstop
- run: dist/pitstop --help
test-src:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/download-artifact@v2
with:
name: ${{ runner.os }}
path: dist
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: |
python -m pip install roverpro --find-links dist/
python -m roverpro.pitstop --help