From cceb17261dfa093f5ceaa35dd239262faf2d8619 Mon Sep 17 00:00:00 2001 From: kraktus Date: Sat, 19 Oct 2024 18:38:29 +0200 Subject: [PATCH] Fix CI test and `make test` Otherwise pytest would try to run integration tests outside of the container --- .github/workflows/{lila.yml => integration_test.yml} | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{lila.yml => integration_test.yml} (98%) diff --git a/.github/workflows/lila.yml b/.github/workflows/integration_test.yml similarity index 98% rename from .github/workflows/lila.yml rename to .github/workflows/integration_test.yml index 535d390..87c5b1d 100644 --- a/.github/workflows/lila.yml +++ b/.github/workflows/integration_test.yml @@ -12,7 +12,7 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] container: ubuntu:22.04 services: - lila: + bdit_lila: image: ghcr.io/lichess-org/lila-docker:main options: --restart=always steps: diff --git a/Makefile b/Makefile index 25716b2..c93d454 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ setup: ## setup poetry env and install dependencies poetry install --with dev test: ## run tests with pytest - poetry run pytest + poetry run pytest tests test_record: ## run tests with pytest and record http requests poetry run pytest --record-mode=once