-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Importing structure for building (#111)
* Importing structure for building * cleans tests * Windows testing (#113) test updating and new workflows for Windows testing and build * changes for comments * changes for comments
- Loading branch information
1 parent
d77ddff
commit d8a9b55
Showing
30 changed files
with
275 additions
and
67 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
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,42 @@ | ||
name: Upload Windows Python Package | ||
|
||
on: | ||
release: | ||
types: [prereleased, published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.6', '3.7', '3.8' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x86 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools | ||
pip install -r requirements.txt | ||
pip install wheel twine | ||
- 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 | ||
|
||
- name: Publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: twine upload dist/*.whl |
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
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
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
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,35 @@ | ||
name: Test building Windows 32 bits Package | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.6', '3.7', '3.8' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x86 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools | ||
pip install -r requirements.txt | ||
pip install wheel | ||
- 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 |
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,41 @@ | ||
name: Tests on Windows | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
testing: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.6', '3.7', '3.8' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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 | ||
pip install -r requirements.txt | ||
pip install pytest | ||
- name: Download spatialite | ||
run: | | ||
cd tests | ||
python setup_windows_spatialite.py | ||
cd .. | ||
- name: Compile library | ||
run: | | ||
cd aequilibrae/paths | ||
python setup_Assignment.py build_ext --inplace | ||
cd .. | ||
cd .. | ||
- name: Runs test | ||
run: | | ||
python -m pytest |
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 |
---|---|---|
|
@@ -65,5 +65,9 @@ docs/source/_generated/* | |
|
||
|
||
#Virtual environment | ||
.venv/ | ||
|
||
.venv/ | ||
# Test files | ||
tests/*.aem | ||
tests/*.csv | ||
tests/*.omx |
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
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
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
Oops, something went wrong.