-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (37 loc) · 1.01 KB
/
tests.yaml
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
name: Run tests
on: [push, pull_request]
jobs:
run_pytests:
runs-on: ubuntu-latest
name: Install and run tests with pytests
steps:
# Setup Python
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10.10
# Update conda
- name: Update conda
run: conda update -n base -c defaults conda
# Intall pip
- name: Install pip
run: conda install pip
# Install cartopy
- name: Install cartopy
run: conda install -c conda-forge cartopy
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
# Install emcpy
- name: Upgrade pip
run: $CONDA/bin/pip3 install --upgrade pip
- name: Install emcpy and dependencies
run: |
$CONDA/bin/pip3 install --use-deprecated=legacy-resolver -r requirements-github.txt --user .
echo "$PWD"
# Run empcy test suite
- name: Run emcpy pytests
run: |
cd $GITHUB_WORKSPACE
pytest -v src/tests