-
Notifications
You must be signed in to change notification settings - Fork 69
79 lines (65 loc) · 1.6 KB
/
Linting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Install
run: python -m pip install . --no-deps
- name: MyPy
run: mypy opt_einsum
ruff:
name: Ruff
strategy:
fail-fast: false
matrix:
python-version: [3.12]
environment: ["min-deps"]
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channel-priority: true
activate-environment: test
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml
- name: Environment Information
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Lint
run: |
set -e
make format-check