diff --git a/.github/workflows/Linting.yml b/.github/workflows/Linting.yml index 68fca58..bf585f0 100644 --- a/.github/workflows/Linting.yml +++ b/.github/workflows/Linting.yml @@ -16,6 +16,9 @@ jobs: environment: ["min-deps"] runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} steps: - uses: actions/checkout@v4 @@ -29,7 +32,6 @@ jobs: environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml - name: Environment Information - shell: bash -l {0} run: | conda info conda list @@ -37,14 +39,10 @@ jobs: conda config --show - name: Install - shell: bash -l {0} - run: | - python -m pip install . --no-deps + run: python -m pip install . --no-deps - name: MyPy - shell: bash -l {0} - run: | - mypy opt_einsum + run: mypy opt_einsum ruff: name: Ruff @@ -55,6 +53,9 @@ jobs: environment: ["min-deps"] runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} steps: - uses: actions/checkout@v2 @@ -68,7 +69,6 @@ jobs: environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml - name: Environment Information - shell: bash -l {0} run: | conda info conda list @@ -76,7 +76,6 @@ jobs: conda config --show - name: Lint - shell: bash -l {0} run: | set -e make format-check diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 60cab06..1fe172d 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -25,6 +25,9 @@ jobs: environment: "torch-only" runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} steps: - uses: actions/checkout@v4 @@ -38,7 +41,6 @@ jobs: environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml - name: Environment Information - shell: bash -l {0} run: | conda info conda list @@ -51,17 +53,14 @@ jobs: python devtools/ci_scripts/check_no_numpy.py - name: Install - shell: bash -l {0} run: | python -m pip install . --no-deps - name: Test - shell: bash -l {0} run: | pytest -v --cov=opt_einsum opt_einsum/ --cov-report=xml - name: Coverage - shell: bash -l {0} run: | coverage report