[pre-commit.ci] pre-commit autoupdate #438
Workflow file for this run
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: raven-wps Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
MAIN_TESTDATA_BRANCH: "master" | |
jobs: | |
black: | |
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.11" | |
- uses: pre-commit/[email protected] | |
conda: | |
name: Conda (Python${{ matrix.python-version }}; ${{ matrix.os }}) | |
needs: black | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
include: | |
- os: macos-latest | |
python-version: "3.10" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Conda (Micromamba) with Python${{ matrix.python-version }} | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-downloads: true | |
cache-environment: true | |
activate-environment: raven | |
environment-file: environment.yml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
- name: Conda and Mamba versions | |
run: | | |
conda --version | |
echo "micromamba: $(micromamba --version)" | |
- name: Install RavenWPS | |
run: | | |
python3 -m pip install --no-user --editable ".[dev]" | |
- name: Check versions | |
run: | | |
conda list | |
pip check | |
- name: Test RavenWPS | |
run: | | |
python3 -m pytest -m "not very_slow" tests | |
finish: | |
name: Finish | |
needs: | |
- conda | |
runs-on: ubuntu-latest | |
container: python:3-slim | |
steps: | |
- name: Finished | |
run: echo "Finished!" |