Skip to content

chore: Upgrade pre-commit hooks #1360

chore: Upgrade pre-commit hooks

chore: Upgrade pre-commit hooks #1360

Workflow file for this run

name: Python package
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
jobs:
black:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.11.4]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Check with black
run: |
black --check --diff src/pyatmo/ tests/
linter:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11.4]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
ruff check src/pyatmo
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.10.8, 3.11.4]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Run tests with tox
run: |
pip install tox tox-gh-actions
tox