Remove NumPy as a hard dependency (#204) #122
Workflow file for this run
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: Linting | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
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 | |
black: | |
name: Black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python Setup | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Create Environment | |
shell: bash | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install black | |
- name: Lint | |
shell: bash | |
run: | | |
set -e | |
black opt_einsum --check |