Skip to content

Commit

Permalink
Remove upstream testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Dec 7, 2023
1 parent 3a24b54 commit 088abca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 75 deletions.
53 changes: 8 additions & 45 deletions .github/workflows/bundle_with_dakota_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,53 +94,16 @@ jobs:
echo "Found Carolina wheel at $wheel_path"
pip install $wheel_path
- name: Install other Everest 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@${{ inputs.SEBA_TAG }}
- 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
run: |
source myvenv/bin/activate
cd everest
pytest tests -n 4 -m "not ui_test and not integration_test" --dist loadgroup -sv
- name: Run Integration Tests
run: |
source myvenv/bin/activate
cd everest
pytest tests -n 4 -m "integration_test" --dist loadgroup
- name: Checkout Carolina
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build Documentation
run: |
source myvenv/bin/activate
cd everest
mkdir tmp
sphinx-build -W -b html -d tmp/doctrees docs/source {envtmpdir}/html
- name: Test Carolina
run: |
pip install pytest
python -m pytest ./tests
- name: Run UI Tests
env:
QT_QPA_PLATFORM: 'minimal'
run: |
source myvenv/bin/activate
cd everest
python -m pytest -m "ui_test"
- name: Upload wheel as artifact
if: always()
uses: actions/upload-artifact@v3
Expand Down
38 changes: 8 additions & 30 deletions .github/workflows/bundle_with_dakota_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,34 +282,12 @@ jobs:
wheel_path=$(find /tmp/artifacts -name "carolina*-cp$pyver_nodot*-cp$pyver_nodot*macos*whl")
echo "Found Carolina wheel at $wheel_path"
pip install $wheel_path
- name: Install Everest and dependencies
run: |
pip install git+https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest-models.git
pip install git+https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/TNO-Everest/seba.git@${{ inputs.SEBA_TAG }}
git clone https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest.git
pushd everest
pip install .[test,docs]
pip install pytest-asyncio # Should be added to Everest pyproject.toml
popd
- name: Install latest ert main
if: matrix.ert_version == 'main'
run: pip install git+https://github.com/equinor/ert.git
- name: Run Tests
if: matrix.test_type == 'test'
run: |
pushd everest
python -m pytest tests -n 4 -m "not ui_test and not integration_test and not fails_on_macos_github_workflow" --dist loadgroup
popd
- name: Run Integration Tests
if: matrix.test_type == 'integration-test'
run: |
pushd everest
python -m pytest tests -n 4 -m "integration_test and not fails_on_macos_github_workflow" --dist loadgroup
popd
- name: Build Documentation
if: matrix.test_type == 'doc'
- name: Checkout Carolina
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Test Carolina
run: |
pushd everest
mkdir /tmp/everestdocs
sphinx-build -W -b html -d /tmp/everestdocs/doctrees ./docs/source {envtmpdir}/html
popd
pip install pytest
python -m pytest ./tests

0 comments on commit 088abca

Please sign in to comment.