forked from graphnet-team/graphnet
-
Notifications
You must be signed in to change notification settings - Fork 0
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 graphnet-team#612 from RasmusOrsoe/workflow_fix
Workflow Fix
- Loading branch information
Showing
7 changed files
with
56 additions
and
13 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 |
---|---|---|
|
@@ -36,8 +36,16 @@ jobs: | |
name: Unit tests - IceTray | ||
needs: [ check-codeclimate-credentials ] | ||
runs-on: ubuntu-latest | ||
container: icecube/icetray:icetray-prod-v1.8.1-ubuntu20.04-X64 | ||
container: | ||
image: icecube/icetray:icetray-prod-v1.8.1-ubuntu20.04-X64 | ||
options: --user root | ||
steps: | ||
- name: install git | ||
run: | | ||
apt-get --yes install sudo | ||
sudo apt update --fix-missing --yes | ||
sudo apt upgrade --yes | ||
sudo apt-get install --yes git-all | ||
- name: Set environment variables | ||
run: | | ||
echo "PATH=/usr/local/icetray/bin:$PATH" >> $GITHUB_ENV | ||
|
@@ -61,9 +69,9 @@ jobs: | |
coverage run --source=graphnet -m pytest tests/examples/01_icetray | ||
coverage xml -o coverage.xml | ||
#- name: Work around permission issue | ||
# run: | | ||
# git config --global --add safe.directory /__w/graphnet/graphnet | ||
- name: Work around permission issue | ||
run: | | ||
git config --global --add safe.directory /__w/graphnet/graphnet | ||
- name: Publish code coverage | ||
uses: paambaati/[email protected] | ||
if: needs.check-codeclimate-credentials.outputs.has_credentials == 'true' | ||
|
@@ -93,14 +101,21 @@ jobs: | |
editable: true | ||
- name: Print available disk space after graphnet install | ||
run: df -h | ||
- name: Print packages in pip | ||
run: | | ||
pip show torch | ||
pip show torch-geometric | ||
pip show torch-cluster | ||
pip show torch-sparse | ||
pip show torch-scatter | ||
- name: Run unit tests and generate coverage report | ||
run: | | ||
set -o pipefail # To propagate exit code from pytest | ||
coverage run --source=graphnet -m pytest tests/ --ignore=tests/utilities --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/examples/01_icetray/ | ||
coverage run --source=graphnet -m pytest tests/utilities | ||
coverage report -m | ||
- name: Print available disk space after unit tests | ||
run: df -h | ||
run: df -h | ||
|
||
build-macos: | ||
name: Unit tests - macOS | ||
|
@@ -116,8 +131,15 @@ jobs: | |
with: | ||
editable: true | ||
hardware: "macos" | ||
- name: Print packages in pip | ||
run: | | ||
pip show torch | ||
pip show torch-geometric | ||
pip show torch-cluster | ||
pip show torch-sparse | ||
pip show torch-scatter | ||
- name: Run unit tests and generate coverage report | ||
run: | | ||
set -o pipefail # To propagate exit code from pytest | ||
coverage run --source=graphnet -m pytest tests/ --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/examples/ | ||
coverage report -m | ||
coverage report -m |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--find-links https://download.pytorch.org/whl/cpu | ||
--find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html | ||
--find-links https://data.pyg.org/whl/torch-2.1.0+cpu.html |
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,4 +1,4 @@ | ||
# Contains packages recommended for functional performance | ||
--find-links https://download.pytorch.org/whl/torch_stable.html | ||
torch==2.0.1+cu117 | ||
--find-links https://data.pyg.org/whl/torch-2.0.0+cu117.html | ||
torch==2.1.1+cu117 | ||
--find-links https://data.pyg.org/whl/torch-2.1.0+cu117.html |
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,2 +1,2 @@ | ||
--find-links https://download.pytorch.org/whl/torch_stable.html | ||
--find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html | ||
--find-links https://data.pyg.org/whl/torch-2.1.0+cpu.html |
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