diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml deleted file mode 100644 index f7e0ce61..00000000 --- a/.github/workflows/check-links.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Check links (manual) -on: workflow_dispatch -jobs: - check_links: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: Check links in markdown files (markdown-link-check) - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'no' - config-file: '.markdown-link-check-config.json' diff --git a/.github/workflows/check-markdown.yml b/.github/workflows/check-markdown.yml deleted file mode 100644 index 39819fb4..00000000 --- a/.github/workflows/check-markdown.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Lint docs -on: [push, pull_request] -jobs: - check_md: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: Lint markdown files (markdownlint) - uses: articulate/actions-markdownlint@v1 - with: - config: .markdownlint.json - files: '.' diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 275817cd..6a11cc56 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -9,9 +9,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/run-adaptivity-test.yml b/.github/workflows/run-adaptivity-test.yml index f708a48e..f99e518b 100644 --- a/.github/workflows/run-adaptivity-test.yml +++ b/.github/workflows/run-adaptivity-test.yml @@ -7,14 +7,14 @@ on: pull_request: branches: - "*" -jobs: +jobs: adaptivity_integration_tests: name: Run adaptivity integration tests runs-on: ubuntu-latest container: precice/precice:nightly steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager @@ -50,7 +50,7 @@ jobs: container: precice/precice:nightly steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager @@ -76,7 +76,7 @@ jobs: container: precice/precice:nightly steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager diff --git a/.github/workflows/run-checks.yml b/.github/workflows/run-checks.yml new file mode 100644 index 00000000..7bc52561 --- /dev/null +++ b/.github/workflows/run-checks.yml @@ -0,0 +1,55 @@ +name: Run checks for markdown, links, and pre-commit +on: + push: + branches: + - main + - develop + pull_request: + branches: + - "*" +jobs: + check_md: + name: Lint markdown files + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Lint markdown files (markdownlint) + uses: articulate/actions-markdownlint@v1 + with: + config: .markdownlint.json + files: '.' + + check_links: + name: Check links in markdown files + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Check links in markdown files (markdown-link-check) + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'no' + config-file: '.markdown-link-check-config.json' + + precommit: + name: pre-commit checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + check-latest: true + - name: Install pre-commit + run: pip install pre-commit + - name: Run checks + run: pre-commit run -a -v + - name: Git status + if: always() + run: git status + - name: Full diff + if: always() + run: git diff diff --git a/.github/workflows/run-domain-decomposition-tests.yml b/.github/workflows/run-domain-decomposition-tests.yml index b44745ac..807a9661 100644 --- a/.github/workflows/run-domain-decomposition-tests.yml +++ b/.github/workflows/run-domain-decomposition-tests.yml @@ -7,14 +7,14 @@ on: pull_request: branches: - "*" -jobs: +jobs: domain_decomposition_integration_tests: name: Run domain decomposition integration tests runs-on: ubuntu-latest container: precice/precice:nightly steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager @@ -42,7 +42,7 @@ jobs: timeout-minutes: 3 working-directory: micro-manager/tests/integration/test_unit_cube run: mpiexec -n 2 --allow-run-as-root python3 run_micro_manager.py --config micro-manager-config-parallel-1.json & python3 unit_cube.py - + - name: Run integration test (variant 2) timeout-minutes: 3 working-directory: micro-manager/tests/integration/test_unit_cube @@ -54,7 +54,7 @@ jobs: container: precice/precice:nightly steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager diff --git a/.github/workflows/run-macro-micro-dummy.yml b/.github/workflows/run-macro-micro-dummy.yml index c615fd75..9ac65245 100644 --- a/.github/workflows/run-macro-micro-dummy.yml +++ b/.github/workflows/run-macro-micro-dummy.yml @@ -7,7 +7,7 @@ on: pull_request: branches: - "*" -jobs: +jobs: run_dummy: name: Run dummy runs-on: ubuntu-latest @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: micro-manager diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 420f3fd5..72b04c72 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest container: precice/precice:nightly steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: micro-manager