Skip to content

Commit

Permalink
try to fix the github tripyview push test: try52
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickscholz committed Oct 1, 2024
1 parent 29c7922 commit 93ca889
Showing 1 changed file with 5 additions and 33 deletions.
38 changes: 5 additions & 33 deletions .github/workflows/tripyview_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,34 +58,6 @@ jobs:
uses: actions/checkout@v3
with:
path: main

## Create a custom .condarc file to disable CUDA checks
#- name: Create custom .condarc
#run: |
#echo "virtual_pkgs_dirs: []" > ~/.condarc

## Set environment variable to disable virtual packages (including CUDA)
#- name: Disable CUDA and Virtual Packages
#run: |
#echo "MAMBA_NO_VIRTUAL_PACKAGES=1" >> $GITHUB_ENV

## Set MAMBA_NO_CUDA environment variable
#- name: Set MAMBA_NO_CUDA
#run: |
#echo "export MAMBA_NO_CUDA=1" >> $GITHUB_ENV

## Step to fake the nvidia-smi command
#- name: Create fake nvidia-smi
#run: |
#echo -e '#!/bin/bash\nexit 1' > fake_nvidia_smi
#chmod +x fake_nvidia_smi
#echo "$(pwd)/fake_nvidia_smi" >> $GITHUB_PATH

# Set virtual packages manually
#- name: Set virtual packages
#run: |
#echo "virtual_pkgs: ['__unix', '__linux']" > $HOME/.condarc


#_______________________________________________________________________
# Checkout pyfesom2 Repository - It then checks out the tripyview
Expand All @@ -112,23 +84,23 @@ jobs:
xarray
netCDF4
# supports off, critical, error, warning, info, debug, trace
log-level: debug
log-level: info
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" #cache-env: true

env:
ACTIONS_STEP_DEBUG: true
#MAMBA_NO_CUDA: 1 # Skip CUDA virtual package check
#env:
#ACTIONS_STEP_DEBUG: true


#_______________________________________________________________________
# Check xarray and netCDF Versions - This step prints the versions of two
# key libraries (xarray and netCDF4) used by the project to ensure they
# are installed correctly.
- name: checkout xarray version
working-directory: tripyview
run: |
python -c "import xarray; print('xarray version:', xarray.__version__)"
#python -c "import netCDF4; print('netcdf4 (py,c) versions:', netCDF4.__version__, netCDF4._netCDF4.__netcdf4libversion__)"
python -c "import netCDF4; print('netcdf4 (py,c) versions:', netCDF4.__version__, netCDF4._netCDF4.__netcdf4libversion__)"
#_______________________________________________________________________
# Install tripyview - Installs the tripyview library in editable mode (-e),
Expand Down

0 comments on commit 93ca889

Please sign in to comment.