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#608 from RasmusOrsoe/fix_workflow_di…
…sk_space Fix `OSError: [Errno 28] No space left on device` in IceTray workflow
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 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,14 +36,16 @@ jobs: | |
name: Unit tests - IceTray | ||
needs: [ check-codeclimate-credentials ] | ||
runs-on: ubuntu-latest | ||
container: icecube/icetray:combo-stable | ||
container: icecube/icetray:icetray-prod-v1.8.1-ubuntu20.04-X64 | ||
steps: | ||
- name: Set environment variables | ||
run: | | ||
echo "PATH=/usr/local/icetray/bin:$PATH" >> $GITHUB_ENV | ||
echo "PYTHONPATH=/usr/local/icetray/lib:$PYTHONPATH" >> $GITHUB_ENV | ||
echo "LD_LIBRARY_PATH=/usr/local/icetray/lib:/usr/local/icetray/cernroot/lib:/usr/local/icetray/lib/tools:$LD_LIBRARY_PATH" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
- name: Print available disk space before graphnet install | ||
run: df -h | ||
- name: Upgrade packages already installed on icecube/icetray | ||
run: | | ||
pip install --upgrade astropy # Installed version incompatible with numpy 1.23.0 [https://github.com/astropy/astropy/issues/12534] | ||
|
@@ -58,9 +60,10 @@ jobs: | |
coverage run --source=graphnet -m pytest tests/ --ignore=tests/examples | ||
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' | ||
|
@@ -82,16 +85,22 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Print available disk space before graphnet install | ||
run: df -h | ||
- name: Install package | ||
uses: ./.github/actions/install | ||
with: | ||
editable: true | ||
- name: Print available disk space after graphnet install | ||
run: df -h | ||
- 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 | ||
|
||
build-macos: | ||
name: Unit tests - macOS | ||
|