-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (40 loc) · 1.13 KB
/
tests.yml
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
name: Test
on:
push:
branches: [master]
pull_request:
# Check all PR
defaults:
run:
shell: bash
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
julia-version: [lts, "1.11", "nightly"]
include:
- os: windows-2022
julia-version: lts
- os: macos-14
julia-version: lts
steps:
- uses: actions/checkout@v4
- name: setup Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- name: build package
run: julia --check-bounds=yes --inline=no --project -e 'using Pkg; Pkg.build("Chemfiles")'
- name: run tests
run: julia --check-bounds=yes --inline=no --project -e 'using Pkg; Pkg.test("Chemfiles"; coverage=true)'
- name: run extra checks
if: matrix.os == 'ubuntu-24.04'
run: ./scripts/check_used_functions.py
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-24.04'
with:
fail_ci_if_error: true
verbose: true