-
Notifications
You must be signed in to change notification settings - Fork 30
62 lines (57 loc) · 1.73 KB
/
mpl_tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Dependecy test Matplotlib
on:
pull_request:
types: [labeled]
workflow_dispatch:
jobs:
mpl_tests:
if: ${{ github.event.label.name == 'test_mpl' && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mpl-version: [3.5.0]
include:
- mpl-version: 3.5.1
- mpl-version: 3.5.2
- mpl-version: 3.5.3
- mpl-version: 3.6.0
- mpl-version: 3.6.1
- mpl-version: 3.6.2
- mpl-version: 3.6.3
- mpl-version: 3.7.0
- mpl-version: 3.7.1
- mpl-version: 3.7.2
- mpl-version: 3.7.3
- mpl-version: 3.7.4
- mpl-version: 3.7.5
- mpl-version: 3.8.0
- mpl-version: 3.8.1
- mpl-version: 3.8.2
- mpl-version: 3.8.3
- mpl-version: 3.8.4
- mpl-version: 3.9.0
- mpl-version: 3.9.2
- mpl-version: 3.9.3
- mpl-version: 3.10.0
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install dependencies with given Matplotlib version
run: |
sed -i '/matplotlib/d' ./requirements.txt
sed -i '1i\matplotlib == ${{ matrix.mpl-version }}' ./requirements.txt
cat ./requirements.txt
pip install -r ./devtools/dev-requirements.txt
- name: Action Details
run: |
pwd
lscpu
pip list
- name: Test with pytest
run: |
python -m pytest tests/test_plotting.py --durations=0 --mpl --maxfail=1