From d46ab8bd0857d7ef7fa00679cd7d040e73d07a63 Mon Sep 17 00:00:00 2001 From: Michel Schanen Date: Mon, 4 Dec 2023 12:13:27 -0600 Subject: [PATCH] Adding CI --- .github/codecov.yml | 8 ++++++++ .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/codecov.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..bfdc987 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + informational: true + patch: + default: + informational: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aaa0459 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - main + tags: '*' + pull_request: + types: [opened, synchronize, reopened] + schedule: + - cron: '0 0 * * 0' + +jobs: + test-moonshot: + env: + CUDA_VISIBLE_DEVICES: 1 + JULIA_DEPOT_PATH: /scratch/github-actions/julia_depot_cudss + runs-on: self-hosted + strategy: + matrix: + os: [ubuntu-22.04] + julia-version: ['1.9'] + julia-arch: [x64] + + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@latest + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v2 + with: + file: lcov.info