Skip to content

[pre-commit.ci] pre-commit autoupdate #454

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #454

Workflow file for this run

name: finch-wps Testing Suite
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Code linting
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install flake8
run: pip install flake8
- name: Run linting suite
run: flake8
conda:
name: Conda
needs: lint
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Setup conda and environment
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: environment.yml
create-args: >-
conda
python=${{ matrix.python-version }}
- name: Conda and Mamba versions
run: |
conda --version
echo "micromamba: $(micromamba --version)"
- name: Install finch-wps
run: |
make develop
- name: Check versions
run: |
conda list
pip check
- name: Run tests
run: |
make start
sleep 2
make test-notebooks
make test