Skip to content

Modernize testing, load configurations more dynamically, use pooch #385

Modernize testing, load configurations more dynamically, use pooch

Modernize testing, load configurations more dynamically, use pooch #385

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Lint (Python${{ matrix.python-version }})
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: "3.x"
- name: Install linting libraries
run: |
python -m pip install flake8 black
- name: Lint with flake8
run: |
flake8 roocs_utils tests
- name: Check formatting with black
run: |
black --check roocs_utils tests
build:
name: Test (Python${{ matrix.python-version }})
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ matrix.python-version }}
- name: Install roocs-utils
run: |
python -m pip install --editable ".[dev]"
- name: Test with pytest
run: |
pytest -v tests