Skip to content

Commit

Permalink
fixing init
Browse files Browse the repository at this point in the history
  • Loading branch information
kumiori committed Oct 7, 2024
1 parent 4e16597 commit 0035699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
echo "Creating the conda environment: fenicsx-env"
conda create -n fenicsx-env -c conda-forge fenics-dolfinx=0.7.2 mpich pyvista sympy pandas pyyaml -y
echo "Activating the conda environment"
source $(conda info --base)/etc/profile.d/conda.sh # Fix to allow `conda activate`
conda activate fenicsx-env
echo "Environment created and activated. Now, verifying installation..."
conda list # Print all installed packages for verification
Expand All @@ -42,6 +43,7 @@ jobs:
# Install the irrevolutions package in the conda environment
- name: Install irrevolutions
run: |
source $(conda info --base)/etc/profile.d/conda.sh # Ensure conda is properly initialized
echo "Installing irrevolutions package"
conda activate fenicsx-env
python -m pip install . # Assuming irrevolutions is in the current directory
Expand All @@ -50,6 +52,7 @@ jobs:
# Optionally run tests within the environment
- name: Run tests
run: |
source $(conda info --base)/etc/profile.d/conda.sh # Ensure conda is properly initialized
echo "Running tests"
conda activate fenicsx-env
cd test && pytest -v . || echo "Tests failed"

0 comments on commit 0035699

Please sign in to comment.