diff --git a/.github/workflows/bundle_with_dakota.yml b/.github/workflows/bundle_with_dakota.yml index b73a22e8..1ce8debe 100644 --- a/.github/workflows/bundle_with_dakota.yml +++ b/.github/workflows/bundle_with_dakota.yml @@ -24,16 +24,17 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: actions/cache@v3 id: cache-package-check with: key: carolina_dist_${{ matrix.os }}_python-${{ matrix.python-version }}_boost-${{ env.BOOST_VERSION }}_dakota-${{ env.DAKOTA_VERSION }} path: ./carolina_dist + - uses: actions/checkout@v3 + if: steps.cache-package-check.outputs.cache-hit != 'true' + with: + fetch-depth: 0 + - name: Build Linux Wheel if: steps.cache-package-check.outputs.cache-hit != 'true' uses: docker://quay.io/pypa/manylinux2014_x86_64 @@ -73,35 +74,50 @@ jobs: # QT_QPA_PLATFORM: 'minimal' # run: | # sh dakota_manylinux_install_files/test_wheels_gha.sh + - name: Set up python venv + run: python3.10 -m venv myvenv + - name: Install carolina run: | - python3.10 -m pip install carolina_dist/carolina-1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + source myvenv/bin/activate + pip install carolina_dist/carolina-1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - - name: Install Everest and dependencies + - name: Install dependencies run: | + source myvenv/bin/activate pip install git+https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/spinningjenny.git pip install git+https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/TNO-Everest/seba.git@6.12.0 + + - name: Install Everest + run: | + source myvenv/bin/activate + git clone https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest.git + cd everest pip install .[test,docs] - name: Install latest ert main if: matrix.ert-version == 'main' run: | + source myvenv/bin/activate sudo apt-get install build-essential pip install git+https://github.com/equinor/ert.git - name: Run Tests if: matrix.test_type == 'test' run: | + source myvenv/bin/activate pytest tests -n 4 -m "not ui_test and not integration_test" --dist loadgroup -sv - name: Run Integration Tests if: matrix.test_type == 'integration-test' run: | + source myvenv/bin/activate pytest tests -n 4 -m "integration_test" --dist loadgroup - name: Build Documentation if: matrix.test_type == 'doc' run: | + source myvenv/bin/activate mkdir tmp sphinx-build -W -b html -d tmp/doctrees docs/source {envtmpdir}/html @@ -110,6 +126,7 @@ jobs: env: QT_QPA_PLATFORM: 'minimal' run: | + source myvenv/bin/activate python -m pytest -m "ui_test" - name: Upload wheel as artifact