skip on ci

This commit is contained in:
Sander Land committed 2020-06-04 22:29:04 +02:00
1 parent 0b11707558
commit bd54e82e7a
2 files changed
+5 -5

No files matched your search

+2 -5
View File
@@ -11,14 +11,11 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7]
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt install ocl-icd-libopencl1 ocl-icd-dev ocl-icd-opencl-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
@@ -30,7 +27,7 @@ jobs:
pip3 install pytest wheel polib
- name: Run tests
run: pytest -v -s tests
run: pytest tests
- name: Run I18N conversion
run: python i18n.py
+3
View File
@@ -1,3 +1,5 @@
import pytest
import os
from katrain.core.ai import generate_ai_move
from katrain.core.constants import AI_STRATEGIES_RECOMMENDED_ORDER, AI_STRATEGIES, OUTPUT_INFO
from katrain.core.base_katrain import KaTrainBase
@@ -10,6 +12,7 @@ class TestAI:
def test_order(self):
assert set(AI_STRATEGIES_RECOMMENDED_ORDER) == set(AI_STRATEGIES)
@pytest.mark.skipif(os.environ.get('CI'),reason='GH actions has no OpenCL')
def test_ai_strategies(self):
katrain = KaTrainBase(force_package_config=True, debug_level=0)
engine = KataGoEngine(katrain, katrain.config("engine"))