Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/blackisort.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/pythonlint.yml

This file was deleted.

36 changes: 13 additions & 23 deletions .github/workflows/pythontests.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,29 @@
on: ['push', 'pull_request']
jobs:
# Removed macos tests because github actions doesn't support python 3.7 anymore
# osx_mdp_tests:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python 3.7
# uses: actions/setup-python@v4
# with:
# python-version: '3.7'
# architecture: 'x64'
# - name: Install dependencies
# run: python -m pip install --upgrade pip
# - name: Setup
# run: pip install -e .[harl]
# - name: Run tests
# run: |
# python -m unittest discover -s testing/ -p "*_test.py"
ubuntu_mdp_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
- name: Set up Python 3.10.16
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.10.16
architecture: 'x64'
- name: Install dependencies
- name: Install uv
run: |
python -m pip install --upgrade pip
pip install coverage
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Setup virtual environment and install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install coverage
- name: Setup # needs -e flag for coverage tests to work
run: pip install -e .[harl]
run: |
source .venv/bin/activate
uv pip install -e .
- name: Run tests and generate coverage report
run: |
source .venv/bin/activate
coverage run -m unittest discover -s testing/ -p "*_test.py"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,7 @@ node_modules/
**/__pycache__/
#manually correcting for demo
!**/static/**/*.png
!src/overcooked_demo/server/static/lib
!src/overcooked_demo/server/static/lib

# Ignore copied overcooked_ai directory in server
src/overcooked_demo/server/overcooked_ai/
Loading