Skip to content

Introduce ruff and test with python3.12 #1269

Introduce ruff and test with python3.12

Introduce ruff and test with python3.12 #1269

Workflow file for this run

name: Python
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11", "3.12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Install
run: |
pip install .
- name: Test with mypy typing
run: |
pip install -r types_requirements.txt
mypy --config-file mypy.ini --package webviz_ert
- name: Test with pytest
run: |
pip install -r test_requirements.txt
pytest
- name: Run ruff
run: |
ruff check
ruff format --check