Skip to content

Versioned Documentation #141

Versioned Documentation

Versioned Documentation #141

Workflow file for this run

name: Linting
on:
push:
branches: main
pull_request:
branches: main
jobs:
mypy:
name: MyPy
strategy:
fail-fast: false
matrix:
python-version: [3.12]
environment: ["min-deps"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Install
shell: bash -l {0}
run: |
python -m pip install . --no-deps
- name: MyPy
shell: bash -l {0}
run: |
mypy opt_einsum
ruff:
name: Ruff
strategy:
fail-fast: false
matrix:
python-version: [3.12]
environment: ["min-deps"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Lint
shell: bash -l {0}
run: |
set -e
make format-check