-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1010 Bytes
/
ci_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
name: CI tests
# trigger
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Prepare python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ hashFiles('**/.ci_pip_reqs.txt') }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -e .
# uninstall, otherwise git+... installation from .ci_pip_reqs.txt won't do anything
pip uninstall -y petab
pip install -r .ci_pip_reqs.txt
- name: Check style
run: ruff check
- name: Run tests
run: pytest test