-
Notifications
You must be signed in to change notification settings - Fork 199
101 lines (87 loc) · 2.63 KB
/
libraries.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Library tests
on:
workflow_dispatch:
push:
branches: ['**']
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- library: numpy
version: 1.21.6
python-version: '3.10'
- library: numpy
version: 1.22.4
python-version: '3.10'
- library: numpy
version: 1.23.5
python-version: '3.10'
- library: numpy
version: 1.24.4
python-version: '3.11'
- library: scikit-learn
version: 0.24.2
python-version: 3.9
- library: scikit-learn
version: 1.0.2
python-version: '3.10'
- library: scikit-learn
version: 1.1.3
python-version: '3.10'
- library: scikit-learn
version: 1.2.2
python-version: '3.10'
- library: scipy
version: 1.7.3
python-version: '3.10'
- library: scipy
version: 1.8.1
python-version: '3.10'
- library: scipy
version: 1.9.3
python-version: '3.11'
- library: scipy
version: 1.10.1
python-version: '3.11'
- library: crlibm
python-version: '3.10'
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 dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install .
- name: Pre-install numpy
if: ${{ matrix.library == 'numpy' }}
run: |
python -m pip install numpy==${{ matrix.version }}
- name: Pre-install scikit-learn
if: ${{ matrix.library == 'scikit-learn' }}
run: |
python -m pip install scikit-learn==${{ matrix.version }}
- name: Pre-install scipy
if: ${{ matrix.library == 'scipy' }}
run: |
python -m pip install scipy==${{ matrix.version }}
- name: Pre-install crlibm
if: ${{ matrix.library == 'crlibm' }}
run: |
python -m pip install crlibm
- name: List installed packages
run: |
python -m pip list
- name: Test with pytest
run: |
pytest