-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (38 loc) · 1020 Bytes
/
ci.yaml
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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
run_test:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest,]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install wheel
run: python -m pip install --upgrade wheel
- name: Install dependencies
run: pip install -r ci/requirements.txt
- name: Install solt
run: pip install .
- name: Run tests
run: py.test tests --cov solt --cov-report term-missing -v
- name: Run black
run: black --config=black.toml --check .
- name: Run flake8
run: flake8
- name: Run codecov
run: codecov