forked from potassco/eclingo
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.22 KB
/
test.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
name: CI
on:
- push
- pull_request
jobs:
build:
name: eclingo ${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.clingo-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.11', '3.12']
clingo-version: ['>=5.5.0,<5.6.0','>=5.6.0,<5.7.0','>=5.7.0,<5.8.0']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install "clingo${{ matrix.clingo-version }}"
python -m pip install nox
python -m pip install isort
- name: Clingo version
id: clingo-version
run: |
echo "CLINGO_VERSION=$(python -c 'import clingo; print(clingo.__version__)')" >> $GITHUB_ENV
- name: Cache nox
id: cache-nox
uses: actions/cache@v3
with:
path: .nox
key: ${{ runner.os }}-python-${{ matrix.python-version }}-clingo-${{ env.CLINGO_VERSION }}-nox
- name: Info
run: |
python -VV
pip list
- name: run tests
run: nox -r