-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.36 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Tests
on: [push]
jobs:
test-cpp:
runs-on: ubuntu-latest
container: patrickohara/scip:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install scikit-build ninja pybind11
- name: Build
run: |
mkdir build
cd build
cmake -GNinja ..
cmake --build .
- name: Test
run: |
mkdir .logs
./build/tests/test_pctsp
test-python:
runs-on: ubuntu-latest
container: patrickohara/scip:latest
env:
OPLIB_ROOT: ../OPLib
TSPLIB95_ROOT: ../tsplib95
TSPLIB_ROOT: ../tsplib95/archives/problems/tsp
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install development dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install pybind11
- name: Install pctsp
run: pip3 install .
- name: Download test data
run: |
git clone https://github.com/bcamath-ds/OPLib.git ${OPLIB_ROOT}
git clone https://github.com/rhgrant10/tsplib95.git ${TSPLIB95_ROOT}
- name: Test pctsp
run: pytest tests
- name: Lint
run: pylint pctsp/* tests/* setup.py
- name: Types
run: mypy pctsp
- name: Format
run: black --check */