This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
Deprecate package #388
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: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Test (Python${{ matrix.python-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "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: Lint with flake8 | |
run: | | |
flake8 roocs_utils tests | |
if: matrix.python-version == 3.8 | |
- name: Check formatting with black | |
run: | | |
black --check --target-version py38 roocs_utils tests | |
if: matrix.python-version == 3.8 | |
- name: Test with pytest | |
run: | | |
pytest -v tests |