non X64 test trial7
@@ -37,13 +37,17 @@ jobs:
# The shell to run commands with in the container
shell: /bin/bash
+ env: |
+ TEST_USER: macs3
+
+ # Mount the artifacts directory as /artifacts in the container
+ dockerRunArgs: |
+ -v "${PWD}/build:/build"
+
# Create an artifacts directory
setup: |
mkdir -p "${PWD}/build/"
cp -r "${GITHUB_WORKSPACE}/*" "${PWD}/build/"
- # Mount the artifacts directory as /artifacts in the container
- dockerRunArgs: |
- --volume "${PWD}/build:/build"
# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
@@ -52,17 +56,22 @@ jobs:
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
- pwd
- ls .
+ ls /build
+ cd /build
+ useradd -m "${TEST_USER}"
+ chown -R "${TEST_USER}:${TEST_USER}" /build
apt-get update -qq -y
apt-get install -yq python3 python3-pip python3-setuptools python3-wheel
python3 --version
+ su ${TEST_USER}
+ export PATH="/home/${TEST_USER}/.local/bin:${PATH}"
pip3 --version
pip3 install --user cython
pip3 install --user --upgrade -r requirements.txt
pytest --version
run: |
# install macs3
+ su - ${TEST_USER}
cd /build
python setup.py install --user
# display python version
