Skip to content

Add VariableCodeList.units attribute and tests #873

Add VariableCodeList.units attribute and tests

Add VariableCodeList.units attribute and tests #873

Workflow file for this run

# This workflow installs the package and runs the tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pytest
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '**' ]
jobs:
pytest:
strategy:
matrix:
os:
- macos
- ubuntu
- windows
python-version:
# keep consistent with py-version badge in README.md and docs/index.rst
- '3.10'
- '3.11'
fail-fast: false
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }} py${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the package
run: pip install --editable .[tests]
- name: Test with pytest
run: pytest tests