-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (52 loc) · 1.3 KB
/
Tests.yml
File metadata and controls
53 lines (52 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "Tests"
on:
push:
branches:
- "master"
- "main"
- "release-"
tags: "*"
paths-ignore:
- "docs/**"
pull_request:
types:
- "opened"
- "synchronize"
- "reopened"
- "ready_for_review"
- "converted_to_draft"
workflow_dispatch: ~
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "lts"
- "1"
os:
- "ubuntu-latest"
- "macOS-latest"
- "windows-latest"
uses: "ITensor/ITensorActions/.github/workflows/Tests.yml@main"
with:
group: "${{ matrix.group }}"
julia-version: "${{ matrix.version }}"
os: "${{ matrix.os }}"
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
secrets:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
tests-gate:
name: "Tests"
needs: "tests"
if: "${{ always() && needs.tests.result != 'skipped' }}"
runs-on: "ubuntu-latest"
steps:
- name: "Fail if any matrix leg failed"
run: |
echo "tests.result = ${{ needs.tests.result }}"
test "${{ needs.tests.result }}" = "success"