-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (50 loc) · 1.29 KB
/
test.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
50
name: tests
on:
push:
branches:
- main
#workflow_dispatch:
pull_request:
branches:
- main
schedule:
- cron: '42 0 * * 6'
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.9, "3.10","3.13"]
add_package: [""]
continue-on-error: [false]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.continue-on-error }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
environment-file: .github/test_conda_env.yml
- name: print conda environment info
run: |
conda info -a
conda list
- name: install package
run: |
pip install -v --no-deps .
conda list
- name: run test suite
run: |
mkdir empty; cd empty
cp -r ../shipgrav/tests/ex_files .
coverage run --include='*/shipgrav/*' -m shipgrav.tests
coverage xml -o ../coverage.xml
- name: upload coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}