Groups and Integrations Form Validation Bug #982
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: ExoCTK CI | |
on: [pull_request] | |
jobs: | |
ExoCTK-CI: | |
name: Python - ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 5 | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: exoctk-${{ matrix.python-version }} | |
- name: Build exoctk conda environment and run tests | |
shell: bash -l {0} | |
run: | | |
echo "Setting useful environment variables:" | |
echo " " | |
export PYTHONVERSION=${{ matrix.python-version }} | |
echo "PYTHONVERSION: $PYTHONVERSION" | |
export EXOCTK_DATA=$RUNNER_WORKSPACE/exoctk/exoctk/data/ | |
echo $EXOCTK_DATA | |
echo " " | |
echo "Installing exoctk conda environment" | |
echo " " | |
cd $RUNNER_WORKSPACE/ | |
cd exoctk/ | |
$CONDA/bin/conda env update -f env/environment-${{ matrix.python-version }}.yml -n exoctk-${{ matrix.python-version }} | |
echo " " | |
echo "Installing exoctk package" | |
echo " " | |
python setup.py develop --no-deps | |
echo " " | |
echo "Testing package installation" | |
echo " " | |
python -c "import exoctk; print('Version: ' + exoctk.__version__); print('Path: ' + exoctk.__path__[0])" | |
echo " " | |
echo "The conda environment being used:" | |
echo " " | |
$CONDA/bin/conda env export | |
echo " " | |
echo "Running pytests" | |
echo " " | |
pytest exoctk/tests/ |