Skip to content

Commit

Permalink
Test downloads from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Oct 18, 2023
1 parent 8b51d0b commit 651dbbb
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundle_with_dakota.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
jobs:
build_wheels:
name: 🛞 Build Wheels 🛞
timeout-minutes: 60
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/test_repo_access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,34 @@ jobs:
run: git clone https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/spinningjenny.git

- name: "DL Everest"
run: git clone https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest.git
run: git clone https://${{ secrets.DEPENDENCY_ACCESS_TOKEN }}@github.com/equinor/everest.git

- name: "Clear CWD"
run: |
rm -rf everest
rm -rf seba
rm -rf spinningjenny
- name: "DL Seba from docker"
uses: docker://quay.io/pypa/manylinux2014_x86_64
env:
DEPENDENCY_ACCESS_TOKEN: ${{ secrets.DEPENDENCY_ACCESS_TOKEN }}
with:
entrypoint: /bin/bash
args: '-c "git clone https://[email protected]/TNO-Everest/seba.git"'

- name: "DL spinningjenny from docker"
uses: docker://quay.io/pypa/manylinux2014_x86_64
env:
DEPENDENCY_ACCESS_TOKEN: ${{ secrets.DEPENDENCY_ACCESS_TOKEN }}
with:
entrypoint: /bin/bash
args: '-c "git clone https://[email protected]/equinor/spinningjenny.git"'

- name: "DL Everest from docker"
uses: docker://quay.io/pypa/manylinux2014_x86_64
env:
DEPENDENCY_ACCESS_TOKEN: ${{ secrets.DEPENDENCY_ACCESS_TOKEN }}
with:
entrypoint: /bin/bash
args: '-c "git clone https://[email protected]/equinor/everest.git"'
8 changes: 2 additions & 6 deletions dakota_manylinux_install_files/build_wheels_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ pip install pytest
pytest tests # Should not give any errors

pip wheel . -w wheelhouse &> $INSTALL_DIR/carolina_pipwheel.log
auditwheel repair wheelhouse/* -w dist &> $INSTALL_DIR/carolina_auditwheel_repair.log
auditwheel repair wheelhouse/* -w /github/workspace/dist &> $INSTALL_DIR/carolina_auditwheel_repair.log

# TODO Test that wheel works, and upload dist stuff to pypi
cp -r dist /github/workspace/dist
cp -r /github/workspace/trace

echo "Copied distributables and installation trace"
echo "Copied distributables and installation trace"
8 changes: 4 additions & 4 deletions dakota_manylinux_install_files/test_wheels_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ touch /github/workspace/trace/test_everest.log
wheel_path=$(find dist/ -name "carolina*.whl")
pip install $wheel_path
pip install pytest
pytest tests/ &> /github/workspace/trace/test_carolina.log
pytest ./tests/ &> /github/workspace/trace/test_carolina.log

cd /tmp
mkdir everdeps && cd everdeps
Expand All @@ -27,7 +27,7 @@ echo "Done"
cd ..

echo "Pulling SpinningJenny from git .."
git clone https//:$DEPENDENCY_ACCESS_TOKEN@github.com/equinor/spinningjenny.git
git clone https://$DEPENDENCY_ACCESS_TOKEN@github.com/equinor/spinningjenny.git
cd spinningjenny

echo "Building SpinningJenny .."
Expand All @@ -39,7 +39,7 @@ git clone https://[email protected]/equinor/everest.git
cd everest
echo "Installing everest..."
pip install -e .
pip install -r test_requirements.txt
pip install -r requirements.txt

echo "Running everest tests..."
python -m pytest tests &> /github/workspace/trace/test_everest.log
pytest -n auto ./tests &> /github/workspace/trace/test_everest.log

0 comments on commit 651dbbb

Please sign in to comment.