From 7bc9bf790b5c449be43c58c730b1fb4abcfa0261 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:01:12 -0500 Subject: [PATCH 1/6] Update gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2251642..f1b064e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -Manifest.toml \ No newline at end of file +Manifest.toml +.vscode +.DS_Store \ No newline at end of file From 5b2baffa611eab5027e7fa56be86c04e1c248b42 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:01:49 -0500 Subject: [PATCH 2/6] Use organization CI file --- .github/workflows/CI.yml | 37 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e609955..ba22ee3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,42 +6,31 @@ on: - 'main' - 'release-' tags: '*' + paths-ignore: + - 'docs/**' pull_request: workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + # Cancel intermediate builds: only if it is a pull request build. + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: - test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - runs-on: ${{ matrix.os }} + tests: + name: "Tests" strategy: fail-fast: false matrix: version: - 'lts' - - '1' # automatically expands to the latest stable 1.x release of Julia + - '1' os: - ubuntu-latest - macOS-latest - arch: - - x64 - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest - env: - JULIA_NUM_THREADS: 4 - - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - file: lcov.info \ No newline at end of file + - windows-latest + uses: "QuantumKitHub/.github/.github/workflows/tests.yml@main" + with: + julia-version: "${{ matrix.version }}" + os: "${{ matrix.os }}" + secrets: inherit \ No newline at end of file From 39d41384c8eddc7010eb40be40de1aab361cf9df Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:02:28 -0500 Subject: [PATCH 3/6] Update README badges --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9359c19..52c0ab3 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![CI][ci-img]][ci-url] [![][codecov-img]][codecov-url] -[ci-img]: https://github.com/QuantumKitHub/TBLIS.jl/actions/workflows/ci.yml/badge.svg -[ci-url]: https://github.com/QuantumKitHub/TBLIS.jl/actions/workflows/ci.yml +[ci-img]: https://github.com/QuantumKitHub/TBLIS.jl/actions/workflows/CI.yml/badge.svg +[ci-url]: https://github.com/QuantumKitHub/TBLIS.jl/actions/workflows/CI.yml [codecov-img]: https://codecov.io/gh/QuantumKitHub/TBLIS.jl/graph/badge.svg?token=Nlju9D2P1A [codecov-url]: https://codecov.io/gh/QuantumKitHub/TBLIS.jl From 57e0cd75ef0d880e20fa13443666e1c7e5c0e88b Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:03:18 -0500 Subject: [PATCH 4/6] Use organization format check action --- .github/workflows/FormatCheck.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 493b4ff..f58700c 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,32 +1,14 @@ -name: FormatCheck +name: "Format Check" on: push: branches: + - 'main' - 'master' tags: '*' pull_request: - branches: - - 'master' -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - version: - - '1' # automatically expands to the latest stable 1.x release of Julia - os: - - ubuntu-latest - arch: - - x64 - steps: - - uses: julia-actions/setup-julia@latest - with: - version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/checkout@v4 - - name: Install JuliaFormatter and format - run: | - julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))' - julia -e 'using JuliaFormatter; format(".", verbose=true)' \ No newline at end of file +jobs: + format-check: + name: "Format Check" + uses: "QuantumKitHub/.github/.github/workflows/formatcheck.yml@main" \ No newline at end of file From c76ee0be1e6d3c101f89a0bb8d61082035633f70 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:06:43 -0500 Subject: [PATCH 5/6] Formatter --- test/aqua.jl | 2 +- test/operations.jl | 2 +- test/runtests.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/aqua.jl b/test/aqua.jl index 1571744..9d3c41d 100644 --- a/test/aqua.jl +++ b/test/aqua.jl @@ -1,4 +1,4 @@ using Aqua using TBLIS -Aqua.test_all(TBLIS) \ No newline at end of file +Aqua.test_all(TBLIS) diff --git a/test/operations.jl b/test/operations.jl index 7d6285c..c446058 100644 --- a/test/operations.jl +++ b/test/operations.jl @@ -90,4 +90,4 @@ end end end -end \ No newline at end of file +end diff --git a/test/runtests.jl b/test/runtests.jl index 38cee53..c4b1764 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,4 +6,4 @@ end @time @safetestset "Aqua" begin include("aqua.jl") -end \ No newline at end of file +end From 5e3fc7d034d47c4779799e5e062922b2d117a2cc Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 14 Nov 2024 08:43:12 -0500 Subject: [PATCH 6/6] Disable windows tests --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ba22ee3..581190b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,7 +28,7 @@ jobs: os: - ubuntu-latest - macOS-latest - - windows-latest + # - windows-latest uses: "QuantumKitHub/.github/.github/workflows/tests.yml@main" with: julia-version: "${{ matrix.version }}"