bump #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests (install w/ pip) | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Add conda to system path | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Debug info | |
run: | | |
echo "Running pwd..." | |
pwd | |
echo "\nRunning echo $USER..." | |
echo $USER | |
echo "\nRunning chown..." | |
sudo chown -R -H -L $USER:$USER /home/runner/work/salmon/ | |
chown -R -H -L $USER:$USER /home/runner/work/salmon/ | |
echo "\nRunning chmod..." | |
sudo chmod -R 777 /home/runner/work/salmon/ | |
echo "\nRunning `ls`..." | |
ls | |
- name: Prepare for docker build... | |
run: | | |
chmod +x launch.sh | |
# chown -R -H -L $USER:$USER . | |
sudo chown -R -H -L $USER:$USER . | |
sudo chown -R -H -L $USER:$USER salmon docs tests | |
- name: Install dependencies | |
run: | | |
pip install ".[server,dev]" | |
- name: Run tests in salmon/salmon/ | |
run: sudo /usr/share/miniconda/bin/pytest salmon/ | |
- uses: docker/setup-buildx-action@v1 | |
with: | |
driver: docker | |
- name: Build Salmon server w/ Docker | |
env: | |
SALMON_NO_AUTH: 1 | |
run: | | |
sudo --preserve-env=SALMON_NO_AUTH docker-compose up & | |
until curl 127.0.0.1:8421 > /dev/null 2>&1; do :; done # wait for container to start | |
sudo docker ps | |
- name: Run all tests | |
run: | | |
# sudo docker-compose logs -f & # if debugging; shows logs | |
# sudo /usr/share/miniconda/bin/pytest -s | |
sudo /usr/share/miniconda/bin/pytest |