Skip to content

feat: Prefer ravel over flatten #48

feat: Prefer ravel over flatten

feat: Prefer ravel over flatten #48

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
numpy-version: ["numpy"]
include:
- python-version: "3.9"
numpy-version: "numpy~=1.21.0"
- python-version: "3.10"
numpy-version: "numpy~=1.21.0"
- python-version: "3.11"
numpy-version: "numpy~=1.22.0"
- python-version: "3.12"
numpy-version: "numpy~=1.26.0"
- python-version: "3.13"
numpy-version: "numpy~=1.26.0"
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 dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt "${{ matrix.numpy-version }}"
- name: Typecheck with mypy
run: |
mypy
mypy --strict --no-warn-unused-ignores ensightreader.py
- name: Check with ruff
run: |
ruff check
- name: Test with pytest
run: |
python -m pytest
- name: Generate coverage report for ensightreader.py
run: |
python -m pytest --cov=ensightreader --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON