Skip to content

Update build actions. #99

Update build actions.

Update build actions. #99

name: Build and Test (Branch)
on:
push:
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
- name: Configure conda and install code
shell: bash -l {0}
run: |
mamba install -y --file requirements.txt --file requirements-dev.txt
python -m pip install --no-deps .
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if it fails flake8 with default pyproject.toml
flake8 . --count --show-source --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
pytest