change miniconda to micromamba #94
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-wellies | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
qa: | |
name: qa | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: pip install flake8 isort[pyproject] | |
- run: isort --check . | |
- run: flake8 . | |
setup: | |
name: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: python -m pip install . | |
test: | |
name: pytest | |
env: | |
GIT_PYTHON_TRACE: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: wellies-test | |
environment-file: environment.yml | |
- name: Install wellies and run tests | |
shell: bash -l {0} # required to load conda environment | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Dummy User" | |
python -m pip install .[test] | |
pytest . |