Skip to content

Commit

Permalink
Try use python venv explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Oct 20, 2023
1 parent 9af7501 commit 6027c68
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/bundle_with_dakota.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -73,35 +74,44 @@ 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
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
pip install .[test,docs]
pip install git+https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest.git.[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
Expand All @@ -110,6 +120,7 @@ jobs:
env:
QT_QPA_PLATFORM: 'minimal'
run: |
source myvenv/bin/activate
python -m pytest -m "ui_test"
- name: Upload wheel as artifact
Expand Down

0 comments on commit 6027c68

Please sign in to comment.