forked from potassco/eclingo
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (75 loc) · 2.01 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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']
clingo-version: ['>=5.5.0,<5.6.0']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Cache nox
id: cache-nox
uses: actions/cache@v3
with:
path: .nox
key: ${{ runner.os }}-nox
- name: Install dependencies
run: |
python -m pip install nox
- name: Info
run: |
python -VV
pip list
# - run: poetry run pytest
- name: run tests
run: nox -r
# - name: install dependencies
# run: python -m pip install -r requirements.txt
# - name: run tests
# run: nox
# - name: Set up Python
# uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Set up Clingo
# shell: pwsh
# run: pip install "clingo${{ matrix.clingo-version }}"
# - name: install dev prerequisites
# shell: pwsh
# run: pip install -r .github/requirements.txt
# - name: info
# shell: pwsh
# run: |
# python -VV
# python -c "import clingo; print(clingo.__version__)"
# - name: install eclingo
# shell: pwsh
# run: python -m pip install .
# - name: test
# shell: pwsh
# run: coverage run -m unittest discover -v
# - name: type check
# shell: pwsh
# run: mypy -p clingox
# - name: lint (pylint)
# if: ${{ matrix.python-version != '3.6' }}
# shell: pwsh
# run: pylint clingox
# - name: lint (flake8)
# shell: pwsh
# run: flake8
# - name: coverage
# shell: pwsh
# run: coverage report --fail-under=100