Skip to content

Commit

Permalink
Merge this branch 'main' of https://github.com/elliesch/flipnslide
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesch committed Mar 7, 2024
2 parents ed14997 + 7fbd33f commit 1b8ed5b
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
Expand All @@ -24,20 +27,19 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install flake8 pytest
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
channels: conda-forge
activate-environment: flipnslide-dev
environment-file: environment.yml
use-mamba: true
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
channels: conda-forge
activate-environment: flipnslide-dev
environment-file: environment.yml
use-mamba: true
- name: Install flake8
run: |
# conda activate flipnslide-dev
mamba install --yes flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -46,4 +48,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pytest flipnslide/tests/test_*.py

0 comments on commit 1b8ed5b

Please sign in to comment.