-
Notifications
You must be signed in to change notification settings - Fork 107
50 lines (41 loc) · 1.13 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: Test
on:
pull_request:
branches:
- v2 # TODO: Remove!
- development
- main
push:
branches:
- main
- development
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install package and test dependencies
run: |
# TODO: Once we have expressed dependencies in a more standard way:
# python -m pip install .[test]
python -m pip install .
python -m pip install -r requirements-dev.txt
- name: Type-check package
run: mypy
- name: Unit test
# TODO: Test behind EDL
run: pytest icepyx/ --verbose --cov app --ignore icepyx/tests/test_behind_NSIDC_API_login.py
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}