Skip to content

Update README.md

Update README.md #38

name: Unit Tests
on: [push]
jobs:
build-linux:
name: CI py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: ['3.7', '3.8', '3.9']
python-version: ['3.7']
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment:
anaconda-test-env-py-${{ matrix.python-version }}
auto-update-conda: true
channel-priority: true
channels: defaults,conda-forge,aps-anl-tag
# environment-file: environment.yml
mamba-version: "*"
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true # required for caching
- shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
conda env list
printenv | sort
# $CONDA is an environment variable pointing to the
# root of the miniconda directory
- name: Install Python package requirements
run: |
$CONDA/bin/conda env update --file environment.yml --name $ENV_NAME
$CONDA/bin/conda install pytest --name $ENV_NAME
$CONDA/bin/conda list -r --name $ENV_NAME
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}
- name: Run tests with pytest
run: |
source $CONDA/bin/activate $ENV_NAME
pytest -vvv .
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}