Skip to content

Commit

Permalink
Tweaks CI to new bash defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed Sep 26, 2024
1 parent c15aec2 commit cbae1cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/Linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
environment: ["min-deps"]

runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v4
Expand All @@ -29,22 +32,17 @@ jobs:
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
run: python -m pip install . --no-deps

- name: MyPy
shell: bash -l {0}
run: |
mypy opt_einsum
run: mypy opt_einsum

ruff:
name: Ruff
Expand All @@ -55,6 +53,9 @@ jobs:
environment: ["min-deps"]

runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v2
Expand All @@ -68,15 +69,13 @@ jobs:
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
7 changes: 3 additions & 4 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
environment: "torch-only"

runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cbae1cc

Please sign in to comment.