-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* DEV-245: Add github action to test and build binary Co-authored-by: Rowland Ogwara <rogwara@uchicago.edu>
- Loading branch information
1 parent
5f11997
commit a3b2824
Showing
2 changed files
with
55 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release/** | ||
- hotfix/** | ||
- feat/dev-245-build-binaries | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- ubuntu-16.04 | ||
- windows-latest | ||
python: | ||
- 3.7 | ||
env: | ||
GDC_CLIENT_ZIP: "gdc-client.zip" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Run Tests | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
tox -e py | ||
- name: Package | ||
run: | | ||
cd bin | ||
pip install virtualenv | ||
. ./package | ||
echo ::set-env name=GDC_CLIENT_ZIP::$GDC_CLIENT_ZIP | ||
shell: bash | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.GDC_CLIENT_ZIP }}-py${{ matrix.python }}-${{ matrix.os }} | ||
path: bin/gdc-client_*.zip |
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