-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (33 loc) · 1.22 KB
/
python-package.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
# 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: sparse_dot_mkl CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
scipy-version: ['1.8.1', '1.11.3']
os: [macos-latest, ubuntu-latest]
interface: ['LP64', 'ILP64']
steps:
- uses: actions/checkout@v3
- name: Install conda python & MKL
run: |
sudo chown -R $(whoami) $CONDA
echo $CONDA/bin >> $GITHUB_PATH
$CONDA/bin/conda install mkl python=${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install scipy==${{ matrix.scipy-version }}
python -m pip install numpy pytest coverage
- name: Test with pytest & coverage
run: |
python -m coverage run -m pytest
env:
MKL_INTERFACE_LAYER: ${{ matrix.interface }}
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3