2.0.0 release #6
Workflow file for this run
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: ci/github-actions | |
on: | |
pull_request: | |
branches: [ master, feature/** ] | |
push: | |
branches: [ master, feature/** ] | |
jobs: | |
run-light-tests: | |
env: | |
SKIP_LIMS: true | |
TEST_INHOUSE: false | |
ALLOW_TEST_DOWNLOADS: false | |
TEST_API_ENDPOINT: "http://api.brain-map.org" | |
IPFX_TEST_TIMEOUT: 60 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y hdf5-tools curl | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install allensdk | |
- name: Run tests | |
run: | | |
pip install -r requirements-test.txt | |
mkdir -p test-results | |
git lfs install | |
git config lfs.url 'https://github.com/AllenInstitute/ipfx.git/info/lfs' | |
git lfs env | |
git lfs pull | |
python -m pytest --junitxml=test-results/junit.xml --verbose | |
onprem-tests: | |
name: on-prem tests | |
runs-on: ["self-hosted"] | |
strategy: | |
matrix: | |
image: ["ipfx_py39:latest", "ipfx_py311:latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: run test in docker | |
run: | | |
docker run \ | |
--env-file ~/env.list \ | |
--mount type=bind,source=$PWD,target=/local1/github_worker,bind-propagation=rshared \ | |
-v /data/informatics/module_test_data/:/data/informatics/module_test_data/ \ | |
-v /allen/aibs/informatics/module_test_data/:/allen/aibs/informatics/module_test_data/ \ | |
-v /allen/programs/celltypes/production/mousecelltypes/:/allen/programs/celltypes/production/mousecelltypes/ \ | |
-v /allen/programs/celltypes/workgroups/279/:/allen/programs/celltypes/workgroups/279/ \ | |
-v /allen/programs/celltypes/production/humancelltypes/:/allen/programs/celltypes/production/humancelltypes/ \ | |
--workdir /local1/github_worker --rm \ | |
--user 1001:1001 \ | |
${{ matrix.image }} \ | |
/bin/bash -c "python -m venv .venv; \ | |
source .venv/bin/activate; \ | |
pip install --upgrade pip; \ | |
pip install numpy; \ | |
pip install -r requirements.txt; \ | |
export TEST_API_ENDPOINT=http://api.brain-map.org; \ | |
export SKIP_LIMS=false; \ | |
export TEST_INHOUSE=true; \ | |
export ALLOW_TEST_DOWNLOADS=true; \ | |
export IPFX_TEST_TIMEOUT=60; \ | |
pip install -r requirements-test.txt; \ | |
git config lfs.url 'https://github.com/AllenInstitute/ipfx.git/info/lfs'; \ | |
git lfs env; \ | |
git lfs pull; \ | |
python -m pytest \ | |
--junitxml=test-reports/test.xml --verbose" |