Skip to content

fix conda build

fix conda build #172

name: Python Package using Conda
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]

Check failure on line 15 in .github/workflows/python-package-conda.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-package-conda.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
python-version: ["3.7", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install hippocampy package
run: pip install -e .
- name: Lint with flake8
run: |
conda install flake8
# 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: |
conda install pytest
pytest