From 90cca1d8c02878320bf8d8fa19bdbeb064d0f0d7 Mon Sep 17 00:00:00 2001 From: Lazaro Date: Tue, 8 Oct 2024 16:38:13 +0200 Subject: [PATCH] do less --- .github/workflows/CompatHelper.yml | 2 +- .github/workflows/Lint.yml | 56 --------------------------- .github/workflows/PreCommitUpdate.yml | 35 ----------------- .github/workflows/ReusableTest.yml | 52 ------------------------- README.md | 3 +- 5 files changed, 2 insertions(+), 146 deletions(-) delete mode 100644 .github/workflows/Lint.yml delete mode 100644 .github/workflows/PreCommitUpdate.yml delete mode 100644 .github/workflows/ReusableTest.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 210e56f..d836fb8 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -3,7 +3,7 @@ name: CompatHelper on: schedule: - - cron: 0 0 * * * # Every day at 00:00 UTC + - cron: 0 0 1 * * # Every month at 00:00 UTC workflow_dispatch: permissions: diff --git a/.github/workflows/Lint.yml b/.github/workflows/Lint.yml deleted file mode 100644 index 75dc585..0000000 --- a/.github/workflows/Lint.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - tags: ["*"] - pull_request: - -concurrency: - # Skip intermediate builds: always. - # Cancel intermediate builds: only if it is a pull request build. - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} - -jobs: - - lint: - name: Linting - runs-on: ubuntu-latest - steps: - - name: Clone - uses: actions/checkout@v4 - - name: Setup Julia - uses: julia-actions/setup-julia@v2 - with: - version: "1" - - name: Use Julia cache - uses: julia-actions/cache@v2 - - name: Install JuliaFormatter.jl - run: julia -e 'using Pkg; pkg"add JuliaFormatter"' - - name: Setup Python - uses: actions/setup-python@v5 - with: - cache: "pip" - - name: Cache pre-commit - uses: actions/cache@v4 - with: - path: ~/.cache/pre-commit - key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} - - name: Install pre-commit - run: pip install pre-commit - - name: Run pre-commit - run: SKIP=no-commit-to-branch pre-commit run -a - - link-checker: - name: Link checker - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Link Checker - id: lychee - uses: lycheeverse/lychee-action@v1 - with: - fail: true diff --git a/.github/workflows/PreCommitUpdate.yml b/.github/workflows/PreCommitUpdate.yml deleted file mode 100644 index c1bcef1..0000000 --- a/.github/workflows/PreCommitUpdate.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: pre-commit Update - -on: - schedule: - - cron: "0 7 1/7 * *" # At 7:00 every 7 days - workflow_dispatch: - -jobs: - pre-commit-update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - cache: pip - - name: Install pre-commit - run: pip install pre-commit - - name: Run pre-commit's autoupdate - run: | - # ignore exit code - pre-commit autoupdate || true - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v6 - with: - commit-message: "chore: :robot: pre-commit update" - title: "[AUTO] pre-commit update" - branch: auto-pre-commit-update - delete-branch: true - labels: chore - - name: Check outputs - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" diff --git a/.github/workflows/ReusableTest.yml b/.github/workflows/ReusableTest.yml deleted file mode 100644 index 12431f2..0000000 --- a/.github/workflows/ReusableTest.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Reusable test - -on: - workflow_call: - inputs: - version: - required: false - type: string - default: "1" - os: - required: false - type: string - default: ubuntu-latest - arch: - required: false - type: string - default: x64 - allow_failure: - required: false - type: boolean - default: false - run_codecov: - required: false - type: boolean - default: false - secrets: - codecov_token: - required: true - -jobs: - test: - name: Julia ${{ inputs.version }} - ${{ inputs.os }} - ${{ inputs.arch }} - ${{ github.event_name }} - runs-on: ${{ inputs.os }} - continue-on-error: ${{ inputs.allow_failure }} - - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: ${{ inputs.version }} - arch: ${{ inputs.arch }} - - name: Use Julia cache - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 - - uses: julia-actions/julia-processcoverage@v1 - if: ${{ inputs.run_codecov }} - - uses: codecov/codecov-action@v4 - if: ${{ inputs.run_codecov }} - with: - file: lcov.info - token: ${{ secrets.codecov_token }} diff --git a/README.md b/README.md index 00ec674..d91ae11 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,10 @@ [![In development documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://lazarusA.github.io/UnpackSinTiles.jl/dev) [![Build Status](https://github.com/lazarusA/UnpackSinTiles.jl/workflows/Test/badge.svg)](https://github.com/lazarusA/UnpackSinTiles.jl/actions) [![Test workflow status](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Test.yml/badge.svg?branch=main)](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Test.yml?query=branch%3Amain) -[![Lint workflow Status](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Lint.yml/badge.svg?branch=main)](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Lint.yml?query=branch%3Amain) [![Docs workflow Status](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Docs.yml/badge.svg?branch=main)](https://github.com/lazarusA/UnpackSinTiles.jl/actions/workflows/Docs.yml?query=branch%3Amain) [![Coverage](https://codecov.io/gh/lazarusA/UnpackSinTiles.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/lazarusA/UnpackSinTiles.jl) -[![DOI](https://zenodo.org/badge/DOI/FIXME)](https://doi.org/FIXME) + [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md) [![All Contributors](https://img.shields.io/github/all-contributors/lazarusA/UnpackSinTiles.jl?labelColor=5e1ec7&color=c0ffee&style=flat-square)](#contributors)