-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from ChrisCummins/development
Release v0.3.1
- Loading branch information
Showing
15 changed files
with
165 additions
and
159 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 was deleted.
Oops, something went wrong.
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,53 @@ | ||
--- | ||
# This workflow is used to build the binary wheels that can be uploaded to pypi | ||
# for releases. It produces an artifact containing a macOS and manylinux binary | ||
# wheel from the requested branch. | ||
name: Build Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [stable] | ||
push: | ||
branches: [stable] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Evaluate artifact name | ||
run: | | ||
echo "ARTIFACT=programl-$(cat version.txt)" >> $GITHUB_ENV | ||
echo "Artifact name is $ARTIFACT" | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install build dependencies | ||
uses: ./.github/actions/install-build-dependencies | ||
|
||
- name: Build Python wheel | ||
run: | | ||
if [ "$(uname)" = "Darwin" ]; then | ||
make bdist_wheel | ||
else | ||
make bdist_wheel-linux | ||
fi | ||
env: | ||
BAZEL_OPTS: --batch | ||
BAZEL_FETCH_OPTS: --config=ci | ||
BAZEL_BUILD_OPTS: --config=ci -c opt | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.ARTIFACT }} | ||
path: dist/*.whl | ||
if-no-files-found: error | ||
retention-days: 14 |
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,86 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
- stable | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * 0 # weekly | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install build dependencies | ||
uses: ./.github/actions/install-build-dependencies | ||
|
||
- name: Build Python wheel | ||
run: | | ||
make bdist_wheel | ||
if [ "$(uname)" != "Darwin" ]; then | ||
make bdist_wheel-linux-rename | ||
fi | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
BAZEL_OPTS: --batch | ||
BAZEL_FETCH_OPTS: --config=ci | ||
BAZEL_BUILD_OPTS: --config=ci | ||
|
||
- name: Upload Python wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.os }}-wheel | ||
path: dist/*.whl | ||
if-no-files-found: error | ||
retention-days: 7 | ||
|
||
test: | ||
needs: build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Download Python wheel | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ matrix.os }}-wheel | ||
|
||
- name: Install wheel | ||
run: python -m pip install *.whl | ||
|
||
- name: Install test dependencies | ||
run: python -m pip install -r tests/requirements.txt | ||
|
||
# DGL creates ~/.dgl on first run and I have found that this will fail | ||
# if run from pytest. | ||
- name: Initialize DGL | ||
run: | | ||
python -c 'import dgl; print(dgl.__version__)' | ||
shell: bash | ||
|
||
- name: Test | ||
run: make install-test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
absl-py>=0.11.0 | ||
dgl>=0.6.1 | ||
grpcio==1.33.2 | ||
grpcio>=1.33.2 | ||
networkx>=2.4 | ||
numpy>=1.19.3 | ||
protobuf==3.13.0 | ||
protobuf>=3.13.0 | ||
torch>=1.8.0 | ||
tqdm>=4.38.0 |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pandas==1.1.4 | ||
requests==2.24.0 | ||
torch>=1.8.0 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
0.3.1 |