-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.13 KB
/
tests.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
name: tests ⚙️
on: [ push, pull_request ]
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Install requirements 📦
run: |
conda install eccodes
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
python3 setup.py install
mkdir -p /opt/csv2bufr
cd /opt/csv2bufr
wget https://github.com/wmo-im/csv2bufr-templates/archive/refs/tags/v0.2.tar.gz
tar -zxf v0.2.tar.gz --strip-components=1 csv2bufr-templates-0.2/templates
- name: run tests ⚙️
run: |
pytest
- name: run flake8 ⚙️
run: |
flake8