Skip to content

Commit

Permalink
CI #62 drop conda since only standard python
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Oct 23, 2021
1 parent f35ffa0 commit e332b05
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/unit-tests-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Setup Python
uses: actions/setup-python@v2 conda-incubator/setup-miniconda@v2
with:
activate-environment:
anaconda-test-env-py-${{ matrix.python-version }}
auto-update-conda: true
channel-priority: true
channels: defaults
# 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
- shell: bash -l {0}
run: pip install pytest

- name: Install Python package requirements
- name: Run tests with pytest
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
pytest -vvv .
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}

- name: Run tests with pytest
- name: Run the application, show version
run: |
source $CONDA/bin/activate $ENV_NAME
pytest -vvv .
adl2pydm --version
env:
PY_VER: ${{ matrix.python-version }}
ENV_NAME: anaconda-test-env-py-${{ matrix.python-version }}

0 comments on commit e332b05

Please sign in to comment.