Add file based RW lock #131
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Run Linters" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| packages: write | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| sanity_check: | |
| runs-on: [self-hosted, cpu] | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v3 | |
| - name: Install Conda environment from environment-dev.yml | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: environment-dev.yml | |
| - name: "Run black" | |
| run: make lint/black | |
| - name: "Run isort" | |
| run: make lint/isort | |
| - name: "Run autoflake" | |
| run: make lint/autoflake | |
| - name: "Run cpplint" | |
| run: make lint/cpplint | |
| - name: "Run clang-format" | |
| run: make lint/clang-format | |
| - name: "Run codespell" | |
| run: make lint/codespell | |
| - name: "Run shellcheck" | |
| run: make lint/shellcheck | |
| - name: "Run cmake-lint" | |
| run: make lint/cmake-lint |