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 e33c960
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 9 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"
2 changes: 1 addition & 1 deletion dakota_manylinux_install_files/test_wheels_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ pip install -e .
pip install -r test_requirements.txt

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

0 comments on commit e33c960

Please sign in to comment.