-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (35 loc) · 969 Bytes
/
unit_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
on:
pull_request:
types: [opened, reopened, synchronize, edited]
workflow_dispatch:
jobs:
test:
name: unit_test
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.10', '3.11']
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install eccodes
run : |
sudo apt-get install -y libeccodes-dev
- name: Install dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install Bottleneck
python3 -m pip install --upgrade setuptools
cd $GITHUB_WORKSPACE
pip install .
- name: Run unit tests
shell: bash
run: |
python3 -m unittest discover tests