Repository navigation
155 lines (141 loc) · 3.96 KB
/
Copy pathtest_deploy.yaml
File metadata and controls
155 lines (141 loc) · 3.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: Test and deploy
on:
push:
release:
types: [published]
jobs:
test:
name: Test with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.x"
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pipenv
pipenv install --dev --deploy
pipenv run pip install --upgrade importlib_metadata
- name: Run tests
run: pipenv run tests
build-standard:
name: Build dist
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
pip install -U pipenv
pipenv install --dev --deploy
- name: Build distribution
run: pipenv run build
- uses: actions/upload-artifact@v1
with:
name: dist-standard
path: dist
# build-windows:
# name: Build Windows dist for Python ${{ matrix.python-version }}
# needs: test
# runs-on: windows-latest
# strategy:
# matrix:
# python-version:
# - "3.7"
# # - "3.8"
# steps:
# - name: Install MinGW using Conda
# run: $CONDA/Scripts/conda install m2w64-gcc
# shell: bash
#
# - uses: actions/checkout@v1
#
# - name: Setup Python
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Install dependencies
# run: |
# pip install -U pipenv
# pipenv install --dev --deploy
#
# - name: Build distribution
# run: CC=$CONDA/Library/mingw-w64/bin/gcc.exe pipenv run build_nuitka
# shell: bash
#
# - uses: actions/upload-artifact@v1
# with:
# name: dist-windows-${{ matrix.python-version }}
# path: dist
#
#
# build-linux:
# name: Build Linux dist for ${{ matrix.python-version }}
# needs: test
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version:
# - "cp37-cp37m"
# - "cp38-cp38"
# steps:
# - uses: actions/checkout@v1
#
# - name: Build distribution
# uses: ./.github/actions/build-nuitka-wheel
# with:
# tag: ${{ matrix.python-version }}
#
# - uses: actions/upload-artifact@v1
# with:
# name: dist-linux-${{ matrix.python-version }}
# path: dist
deploy:
if: github.event_name == 'release'
name: Publish
needs:
- build-standard
# - build-windows
# - build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
with:
name: dist-standard
path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-windows-3.7
# path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-linux-cp37-cp37m
# path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-linux-cp38-cp38
# path: dist
# actions/upload-release-asset isn't quite there yet...
# waiting for glob functionality.
# - name: Upload Release Asset
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ""
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}