-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba0b7ca
commit 4124b10
Showing
2 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Upload Windows Python Package | ||
|
||
on: | ||
release: | ||
types: [prereleased, published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.5', '3.6', '3.7', '3.8' ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install numpy cython pyaml pyqt5 pyshp | ||
choco install visualstudio2019community | ||
choco install -y microsoft-build-tools visualcppbuildtools --version 14.0.25420.1 | ||
- name: Compile library | ||
run: | | ||
cd aequilibrae/paths | ||
python setup_Assignment.py build_ext --inplace | ||
cd .. | ||
cd .. | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/*.whl | ||
if [${{ matrix.python-version }} == '3.7']; then | ||
twine upload dist/*.gz |