Skip to content

Commit

Permalink
fixup! Import example learning agents
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 10, 2024
1 parent 43b9a5c commit 3969abe
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ jobs:
path: openai
key: ${{ runner.os }}-cache-openai-${{ hashFiles('openai/**') }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install OpenAI dependencies
if: steps.cache-openai.outputs.cache-hit != 'true'
run: |
Expand All @@ -62,6 +57,11 @@ jobs:
cmake .
make -j
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
Expand Down Expand Up @@ -89,3 +89,7 @@ jobs:
- name: Type check with mypy
run: |
poetry run mypy .
- name: Run test cases
run: |
poetry run pytest
64 changes: 63 additions & 1 deletion src/learning/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/learning/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ flake8 = "^7.0.0"
flake8-pyproject = "^1.2.3"
isort = "^5.13.2"
mypy = "^1.9.0"
pytest = "^8.1.1"

[build-system]
requires = ["poetry-core"]
Expand Down
16 changes: 16 additions & 0 deletions src/learning/test/test_random_agent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
################################################################################
#
# Copyright (C) 2024 retro.ai
# This file is part of retro3 - https://github.com/retroai/retro3
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# See the file LICENSE.txt for more information.
#
################################################################################

#import retroai.retro_env


def test_example():
# Replace with an actual test
assert True

0 comments on commit 3969abe

Please sign in to comment.