-
-
Notifications
You must be signed in to change notification settings - Fork 43
49 lines (47 loc) · 1.42 KB
/
CI.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
44
45
46
47
48
49
name: CI
on:
push:
branches:
- master
tags: '*'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-14
# Disabling Windows tests as it's known to not work:
# https://github.com/SciML/diffeqpy/pull/86#issuecomment-1011675735
# - windows-latest
python-version: ['3.8', '3.12']
fail-fast: false
name: Test ${{ matrix.os }} ${{ matrix.architecture }}
Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Install Julia using jill
run: |
python -m pip install --upgrade jill
python -c "from jill.install import install_julia; install_julia(version='1.10', confirm=True)"
- name: Run test
run: python -m tox -- --cov=diffeqpy -s
env:
TOXENV: py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
name: codecov-umbrella