Skip to content

Commit

Permalink
fix artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
ksimpson-work committed Nov 19, 2024
1 parent d074570 commit e008cc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ runs:
with:
path: ./artifacts/

# - name: Download core build artifacts
# uses: actions/download-artifact@v4
# with:
# name: ${{ env.CORE_ARTIFACT_NAME }}.zip
# path: ./artifacts/core

- name: Run tests in Docker container
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
docker run \
-e PYTHON_VERSION="$PYTHON_VERSION" \
-e BINDINGS_ARTIFACT_NAME="$BINDINGS_ARTIFACT_NAME" \
-e CORE_ARTIFACT_NAME="$CORE_ARTIFACT_NAME" \
-v "${{ env.REPO_DIR }}:${{ env.REPO_DIR }}" \
-v "${{ github.workspace }}/artifacts:/artifacts" \
--rm "${{ inputs.docker-image }}" \
/bin/bash -c "${{ env.REPO_DIR }}/continuous_integration/scripts/entrypoint ${{ env.REPO_DIR }}/continuous_integration/scripts/test"
2 changes: 1 addition & 1 deletion continuous_integration/scripts/make-conda-env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x

make_ci_env() {
mamba env create -n "${CONDA_ENV}" -f "${REPO_DIR}/continuous_integration/environment.yml"
mamba env create -n "${CONDA_ENV}" python="$PYTHON_VERSION" -f "${REPO_DIR}/continuous_integration/environment.yml"
}

make_conda_env() {
Expand Down
6 changes: 6 additions & 0 deletions continuous_integration/scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ build_ci() {

echo "this is where the tests will run"

#look in the artifacts directory and extract the build artifacts which are zips. Then pip install the .whl file from each extracted zip
for file in $(find artifacts -name "*.zip"); do
unzip -o $file -d tmp
pip install tmp/*.whl
done

rm -r tmp/
}

test_project() {
Expand Down

0 comments on commit e008cc2

Please sign in to comment.