Skip to content

Commit

Permalink
Tests CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Dec 1, 2024
1 parent 65ddd97 commit 952245e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]

services:
# Label used to access the service container
redis:
if: ${{matrix.os == 'ubuntu-latest'}}
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
Expand All @@ -28,7 +41,7 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install pytest-cov
python3 -m pip install -e .[tests,gym]
python3 -m pip install -e .[tests,gym,memory_storage]
- name: Tests
run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tests = ["mypy", "testbook", "ipython", "ipykernel", "numpy", "matplotlib", "typ
doc_generation = ["sphinx", "sphinx_rtd_theme", "nbsphinx", "sphinx-mdinclude==0.5.4"]
dev = ["cffconvert"]
gym = ["gymnasium"]
memory_storage = ["redis"]

[tool.setuptools]
include-package-data = true
Expand Down

0 comments on commit 952245e

Please sign in to comment.