Skip to content

Merge branch 'main' of github.com:ai2es/ptype-physical into djgagne #238

Merge branch 'main' of github.com:ai2es/ptype-physical into djgagne

Merge branch 'main' of github.com:ai2es/ptype-physical into djgagne #238

name: Python Package using Conda
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
channel-priority: true
python-version: "3.10"
channels: conda-forge
environment-file: environment.yml
auto-activate-base: false
activate-environment: test
- name: Test Conda
run: |
conda info
conda list
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest