Skip to content

Bump actions/setup-python from 4 to 5 #484

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #484

Workflow file for this run

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@v4
- uses: actions/setup-python@v5
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@v4
- 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!"