|
1 | 1 | name: CI |
2 | | - |
3 | | -# Run on master, tags, or any pull request |
4 | 2 | on: |
5 | 3 | push: |
6 | | - branches: [master] |
7 | | - tags: ["*"] |
| 4 | + branches: |
| 5 | + - master |
| 6 | + tags: ['*'] |
8 | 7 | pull_request: |
9 | | - |
| 8 | + workflow_dispatch: |
| 9 | +concurrency: |
| 10 | + # Skip intermediate builds: always. |
| 11 | + # Cancel intermediate builds: only if it is a pull request build. |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
10 | 14 | jobs: |
11 | 15 | test: |
12 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 16 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
13 | 17 | runs-on: ${{ matrix.os }} |
14 | 18 | strategy: |
15 | 19 | fail-fast: false |
16 | 20 | matrix: |
17 | 21 | version: |
18 | 22 | - '1.6' |
19 | | - - '1' # Latest Release |
| 23 | + - '1' |
20 | 24 | os: |
21 | 25 | - ubuntu-latest |
22 | | - - windows-latest |
23 | 26 | - macos-latest |
| 27 | + - windows-latest |
24 | 28 | arch: |
25 | 29 | - x64 |
26 | | - |
| 30 | + - x86 |
| 31 | + exclude: |
| 32 | + - os: macos-latest |
| 33 | + arch: x86 |
27 | 34 | steps: |
28 | | - - uses: actions/checkout@v2 |
29 | | - - uses: julia-actions/setup-julia@v1 |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + - uses: julia-actions/setup-julia@v2 |
30 | 37 | with: |
31 | 38 | version: ${{ matrix.version }} |
32 | 39 | arch: ${{ matrix.arch }} |
33 | | - - uses: actions/cache@v1 |
34 | | - env: |
35 | | - cache-name: cache-artifacts |
36 | | - with: |
37 | | - path: ~/.julia/artifacts |
38 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
39 | | - restore-keys: | |
40 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
41 | | - ${{ runner.os }}-test- |
42 | | - ${{ runner.os }}- |
43 | | - - uses: julia-actions/julia-buildpkg@latest |
44 | | - - run: | |
45 | | - git config --global user.name Tester |
46 | | - git config --global user.email [email protected] |
47 | | - - uses: julia-actions/julia-runtest@latest |
| 40 | + - uses: julia-actions/cache@v2 |
| 41 | + - uses: julia-actions/julia-buildpkg@v1 |
| 42 | + - uses: julia-actions/julia-runtest@v1 |
48 | 43 | - uses: julia-actions/julia-processcoverage@v1 |
49 | | - - uses: codecov/codecov-action@v1 |
| 44 | + - uses: codecov/codecov-action@v4 |
50 | 45 | with: |
51 | | - file: lcov.info |
52 | | - |
53 | | - # ATM, we only have README |
54 | | - # |
55 | | - # docs: |
56 | | - # name: Documentation |
57 | | - # runs-on: ubuntu-latest |
58 | | - # steps: |
59 | | - # - uses: actions/checkout@v2 |
60 | | - # - uses: julia-actions/setup-julia@v1 |
61 | | - # with: |
62 | | - # version: '1' |
63 | | - # - run: | |
64 | | - # git config --global user.name name |
65 | | - # git config --global user.email email |
66 | | - # git config --global github.user username |
67 | | - # - run: | |
68 | | - # julia --project=docs -e ' |
69 | | - # using Pkg; |
70 | | - # Pkg.develop(PackageSpec(path=pwd())); |
71 | | - # Pkg.instantiate();' |
72 | | - # - run: | |
73 | | - # julia --project=docs -e ' |
74 | | - # using Documenter: doctest |
75 | | - # using TimeSeries |
76 | | - # doctest(TimeSeries)' |
77 | | - # - run: julia --project=docs docs/make.jl |
78 | | - # env: |
79 | | - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 46 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 47 | + files: lcov.info |
0 commit comments