Skip to content

Changed env var warning to info + updated unit test + using PyPI csv2bufr #287

Changed env var warning to info + updated unit test + using PyPI csv2bufr

Changed env var warning to info + updated unit test + using PyPI csv2bufr #287

Workflow file for this run

name: tests ⚙️
on: [ push, pull_request ]
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
BUFR_ORIGINATING_CENTRE: 65535
BUFR_ORIGINATING_SUBCENTRE: 65535
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 https://github.com/wmo-im/csv2bufr/archive/master.zip
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
python3 setup.py install
- name: run tests ⚙️
run: |
pytest
- name: run flake8 ⚙️
run: |
flake8