diff --git a/.github/workflows/nightly_ci_build.yml b/.github/workflows/nightly_ci_build.yml index 968d2770..19ed4875 100644 --- a/.github/workflows/nightly_ci_build.yml +++ b/.github/workflows/nightly_ci_build.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: # os: container operations in GHA only work on Ubuntu - simulation-type: [electric] # basic, GEB, residential, + simulation-type: [basic, GEB, residential, electric] # python-version: No need to test more than 1 python-version # runs-on: ${{ matrix.os }} runs-on: ubuntu-latest @@ -46,6 +46,10 @@ jobs: ruby --version bundle update bundle exec certified-update + - name: Install Python dependencies + # Only the electric tests need to install python dependencies + if: ${{ matrix.simulation-type == 'electric' }} + run: bundle exec uo install_python - name: Test project setup # We only need to run these tests once, not every matrix iteration. if: ${{ matrix.simulation-type == 'electric' }} @@ -56,9 +60,7 @@ jobs: bundle exec rspec -e 'Update project directory' bundle exec rspec -e 'Install python dependencies' - name: Test simulations - run: | - bundle exec uo install_python - bundle exec rspec -e 'Run and work with a small ${{ matrix.simulation-type }} simulation' + run: bundle exec rspec -e 'Run and work with a small ${{ matrix.simulation-type }} simulation' - name: Upload artifacts # Save results for examination - useful for debugging uses: actions/upload-artifact@v3