Skip to content

Commit

Permalink
Try prepre-conda block
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneVoss committed Jan 10, 2024
1 parent 2c2cab9 commit eda2384
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
permissions:
contents: read

.prepare-conda: &prepare-conda
- source $CONDA/etc/profile.d/conda.sh
- conda activate

jobs:
Flake8:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,15 +54,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate
*prepare-conda
conda install -y -c conda-forge mayavi traits traitsui pyface pyfmi h5py mpi4py pytest-cov psutil pytables pyyaml matplotlib mamba pandas openpyxl jupyter jupyter-book flake8 pylint
#python -m pip install --upgrade pip
#pip install pylint
# Install the package itself to make sure that all imports work.
pip install .
- name: Analysing the code with pylint
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate
*prepare-conda
pylint $(git ls-files '*.py') --fail-under=7.0

0 comments on commit eda2384

Please sign in to comment.