Update pyam-imports prior to pyam v2.0 #838
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
# keep consistent with py-version badge in README.md and doc/source/index.rst | |
# update setup.cfg and doc/source/installation.rst when deprecating python 3.8 | |
python-version: ['3.8', '3.9', '3.10'] | |
os: [ubuntu, macos, windows] | |
fail-fast: false | |
runs-on: ${{ matrix.os }}-latest | |
name: 'OS: ${{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 latest pyam version from source | |
run: pip install git+https://github.com/IAMconsortium/pyam.git | |
- name: Install (other) dependencies and package | |
run: pip install --editable .[tests] | |
- name: Test with pytest | |
run: pytest tests |