From d22e8cdb27ab43f520f7e5e99cd84671580bd859 Mon Sep 17 00:00:00 2001 From: Lucille Delisle Date: Wed, 6 Dec 2023 16:48:12 +0100 Subject: [PATCH] use shell: micromamba-shell --- .github/workflows/pylint.yml | 2 +- .github/workflows/test.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index ca6da10..2f0a3f9 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -14,7 +14,6 @@ jobs: environment-name: HiCMatrix_env_ci - name: Analysing the code with pylint run: | - micromamba activate HiCMatrix_env_ci # Disable # C0103: Invalid name # C0114: Missing module docstring @@ -32,3 +31,4 @@ jobs: # R1702: Too many nested blocks # R1728: Consider using a generator pylint --disable C0103,C0114,C0115,C0116,C0301,C0302,R0801,R0902,R0904,R0912,R0913,R0914,R0915,R1702,R1728 $(git ls-files '*.py') + shell: micromamba-shell {0} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8d8992..e84109d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,12 +26,12 @@ jobs: environment-name: HiCMatrix_env_ci - name: pip install run: | - micromamba activate HiCMatrix_env_ci python3 -m pip install . + shell: micromamba-shell {0} - name: Test HiCMatrix run: | - micromamba activate HiCMatrix_env_ci py.test hicmatrix/test/ --capture=sys + shell: micromamba-shell {0} test-osx: name: Test on OSX runs-on: macOS-latest @@ -44,9 +44,9 @@ jobs: environment-name: HiCMatrix_env_ci - name: pip install run: | - micromamba activate HiCMatrix_env_ci python3 -m pip install . + shell: micromamba-shell {0} - name: Test HiCMatrix run: | - micromamba activate HiCMatrix_env_ci - py.test hicmatrix/test/ --capture=sys \ No newline at end of file + py.test hicmatrix/test/ --capture=sys + shell: micromamba-shell {0} \ No newline at end of file