Skip to content

Commit

Permalink
Merge pull request #33 from strakam/ci-upgrades
Browse files Browse the repository at this point in the history
ci: add test workflow
  • Loading branch information
strakam authored Sep 24, 2024
2 parents 2920158 + bebe945 commit 80d32bf
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check commits for Conventional Commits practices

on:
pull_request:
branches: [master]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check Commit Messages
uses: webiny/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_GENERALS }}
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run pytest

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Assuming you have a requirements.txt file
- name: Run pytest
run: |
pytest
6 changes: 3 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- [ ] Let user pass argument indicating what is the default opponent agent for Gymnasium environment.
- [x] Extend action space by allowing user to be IDLE.
- [ ] Add human control, so people can play against bots.
- [ ] Random agent new parameters
- [x] Random agent new parameters

### Improvements
- [ ] Let user change game speed even when the game is paused; make 'Paused' text separate in the side panel.
Expand All @@ -16,5 +16,5 @@

### Documentation and CI
- [ ] Create more examples of usage (Stable Baselines3 demo)
- [ ] Pre-commit hooks for conventional commit checks (enforcing conventional commits)
- [ ] Add CI for running tests (pre commit)
- [x] Pre-commit hooks for conventional commit checks (enforcing conventional commits)
- [x] Add CI for running tests (pre commit)

0 comments on commit 80d32bf

Please sign in to comment.