-
Notifications
You must be signed in to change notification settings - Fork 120
34 lines (25 loc) · 1.01 KB
/
pytest-legacy.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
# This workflow runs the tests with the oldest explicitly supported versions of dependencies
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pytest-legacy
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '**' ]
jobs:
pytest-legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install specific out-dated version of dependencies
# Update the package requirements when changing minimum dependency versions
# Please also add a section "Dependency changes" to the release notes
run: pip install pandas==2.0.0 numpy==1.23.0 matplotlib==3.6.0 iam-units==2020.4.21 xlrd==2.0.1 pint==0.13
- name: Install other dependencies and package
run: pip install .[tests,optional_plotting,optional_io_formats,tutorials]
- name: Test with pytest
run: pytest tests