-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
name: python-aodndata
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MPLBACKEND: agg
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8' ]
stage: [ 'build', 'rc', 'production']
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: update apt-cache
run: |
sudo apt-get update &&
sudo apt-get install -y software-properties-common --no-install-recommends &&
sudo add-apt-repository -y -u ppa:ubuntugis/ubuntugis-unstable
- name: install additional required packages
run: |
sudo apt-get install -y --no-install-recommends \
libudunits2-dev \
libproj-dev \
libgeos-dev \
libffi-dev \
cmake \
libgtest-dev \
build-essential \
curl \
libcurl4-openssl-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-runner
pip install pyshp
pip install scipy
pip install -r stage_requirements.txt
pip install pytest-cov
env:
STAGE: ${{ matrix.stage }}
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml