-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1010 Bytes
/
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
name: Tests
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
env:
OPLIB_ROOT: ../OPLib
TSPLIB95_ROOT: ../tsplib95
TSPLIB_ROOT: ../tsplib95/archives/problems/tsp
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python3 -m pip install --upgrade pip
git clone https://github.com/bcamath-ds/OPLib.git ${OPLIB_ROOT}
git clone https://github.com/rhgrant10/tsplib95.git ${TSPLIB95_ROOT}
pip3 install -r requirements.txt
pip3 install -e .
- name: Test
run: pytest
- name: Formatting
run: black --check */
- name: Lint
run: pylint --rcfile .pylintrc setup.py tspwplib/* tests/*
- name: Type hinting
run: mypy --config-file .mypy.ini tspwplib