-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (31 loc) · 1.16 KB
/
pytest.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
# 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