diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 28f3358c..cbd4e51e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,6 +37,13 @@ jobs: with: update_packager_index: false install_ccache: true + - name: "Pip3 installing pylint + cpplint . . ." + run: | + pip3 install pylint cpplint + - name: "Running pylint and cpplint . . ." + run: | + python -m pylint setup.py tests/*.py libsemigroups_pybind11/*.py + python -m cpplint src/*.hpp src/*.cpp - name: "Install libsemigroups . . ." run: | git clone --depth 1 --branch v3 https://github.com/libsemigroups/libsemigroups.git @@ -62,13 +69,6 @@ jobs: etc/make-doc.sh # so that all files are generated! cd docs python -m sphinx -b doctest -d _build/doctrees source _build/doctest - - name: "Pip3 installing pylint + cpplint . . ." - run: | - pip3 install pylint cpplint - - name: "Running pylint and cpplint . . ." - run: | - python -m pylint setup.py tests/*.py libsemigroups_pybind11/*.py - python -m cpplint src/*.hpp src/*.cpp macosx: strategy: fail-fast: false @@ -93,13 +93,20 @@ jobs: echo "PKG_CONFIG_PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/lib/pkgconfig:$MAMBA_ROOT_PREFIX/envs/libsemigroups/share/pkgconfig:/usr/local/lib/pkgconfig" >> $GITHUB_ENV echo "LD_LIBRARY_PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/lib:/usr/local/lib" >> $GITHUB_ENV echo "PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/bin:$PATH" >> $GITHUB_ENV - - name: "Install libsemigroups dependencies . . ." - run: brew install autoconf automake libtool - name: "Setup ccache . . ." uses: Chocobo1/setup-ccache-action@v1 with: update_packager_index: false install_ccache: true + - name: "Pip3 installing pylint + cpplint . . ." + run: | + pip3 install pylint cpplint + - name: "Running pylint and cpplint . . ." + run: | + python -m pylint setup.py tests/*.py libsemigroups_pybind11/*.py + python -m cpplint src/*.hpp src/*.cpp + - name: "Install libsemigroups dependencies . . ." + run: brew install autoconf automake libtool - name: "Install libsemigroups . . ." run: | git clone --depth 1 --branch v3 https://github.com/libsemigroups/libsemigroups.git @@ -127,10 +134,3 @@ jobs: etc/make-doc.sh # so that all files are generated! cd docs python -m sphinx -b doctest -d _build/doctrees source _build/doctest - - name: "Pip3 installing pylint + cpplint . . ." - run: | - pip3 install pylint cpplint - - name: "Running pylint and cpplint . . ." - run: | - python -m pylint setup.py tests/*.py libsemigroups_pybind11/*.py - python -m cpplint src/*.hpp src/*.cpp