pep8 #160
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: build ⚙️ | |
on: [ push, pull_request ] | |
jobs: | |
conda: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda with Python ${{ matrix.python-version }} | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: ${{ matrix.python-version }} | |
conda-channels: defaults, conda-forge | |
- name: Conda env configuration with mamba | |
run: | | |
conda install mamba | |
mamba env create -f environment.yml | |
source activate duck | |
pip install -e ".[dev]" | |
- name: Test with conda | |
run: | | |
source activate duck | |
pytest tests | |
continue-on-error: false | |
- name: Lint with flake8 ⚙️ | |
run: | | |
source activate duck | |
flake8 duck | |
if: matrix.python-version == 3.10 |