-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (63 loc) · 1.69 KB
/
CI.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
name: Lint, Build, Install, Test
on:
push:
branches:
- master
tags-ignore:
- '*'
paths:
- 'example/**'
- 'skntk/**'
- 'tests/**'
- 'pyproject.toml'
pull_request:
paths:
- 'example/**'
- 'skntk/**'
- 'tests/**'
- 'pyproject.toml'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up latest stable Python version
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Installing dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Analyzing files using flake8 with options
run: |
flake8 . --max-line-length=100 --show-source --statistics --ignore=F401,W504
ci:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
poetry-version: ['1.2.2']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setting up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Running Poetry image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Building scikit-ntk
run: |
poetry build
- name: Installing dependencies
run: |
python -m pip install --upgrade pip
poetry install --with dev
- name: Testing scikit-ntk
run: |
poetry run pytest