Skip to content

Commit 64e5753

Browse files
updated main
1 parent fc33ae2 commit 64e5753

File tree

19 files changed

+117
-7
lines changed

19 files changed

+117
-7
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
continue-on-error: true # <— whole job won’t fail on errors
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-python@v4
12+
with:
13+
python-version: "3.11"
14+
15+
- name: Install deps
16+
run: |
17+
pip install -r requirements.txt
18+
pip install pytest black flake8
19+
20+
- name: Black (check only)
21+
run: black --check src/ test/
22+
23+
- name: Flake8
24+
run: flake8 src/ test/
25+
26+
- name: Pytest
27+
run: pytest --maxfail=1 --disable-warnings -q

.github/workflows/codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Coverage
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
continue-on-error: true
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: actions/setup-python@v4
10+
with:
11+
python-version: "3.11"
12+
- run: pip install -r requirements.txt pytest pytest-cov codecov
13+
- run: pytest --cov=src --cov-report=xml
14+
- uses: codecov/codecov-action@v3

.github/workflows/docker.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Docker
2+
on: [push, pull_request]
3+
4+
jobs:
5+
docker:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
10+
- name: Build Docker image
11+
run: docker build -f docker/Dockerfile -t particle-swarm-optimization-task .

.gitignore

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,57 @@
1-
*.pyc
2-
*.json
1+
# Python bytecode files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# Virtual environment
6+
.venv/
7+
env/
8+
venv/
9+
10+
# Nox-related files
11+
.nox/
12+
13+
# Pytest cache
14+
.cache/
15+
16+
# Mypy cache
17+
.mypy_cache/
18+
19+
# IDE/editor config files
20+
.idea/
21+
.vscode/
22+
23+
# OS-specific files (macOS)
24+
.DS_Store
25+
26+
# OS-specific files (Windows)
27+
Thumbs.db
28+
*.bak
29+
*.swp
30+
31+
# Egg info and distribution files
32+
*.egg-info/
33+
*.dist-info/
34+
build/
35+
dist/
36+
37+
# Log files
38+
*.log
39+
40+
# Coverage reports
41+
*.coverage
42+
.coverage.*
43+
44+
# Jupyter Notebook checkpoints
45+
.ipynb_checkpoints/
46+
47+
# pytest results
48+
*.xml
49+
50+
# pycache
51+
__pycache__/
52+
*.py[cod]
53+
54+
# logs/outputs
55+
logs/
56+
outputs/
57+
wandb/

Brandon Ooi.pptx

-1.76 MB
Binary file not shown.

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
# PSO
1+
# Formation: Multi-Agent Reinforcement Learning (TorchRL)
2+
3+
[![CI](https://github.com/elte-collective-intelligence/student-particle-swarm-optimization/actions/workflows/ci.yml/badge.svg)](https://github.com/elte-collective-intelligence/student-particle-swarm-optimization/actions/workflows/ci.yml)
4+
[![Docker](https://github.com/elte-collective-intelligence/student-particle-swarm-optimization/actions/workflows/docker.yml/badge.svg)](https://github.com/elte-collective-intelligence/student-particle-swarm-optimization/actions/workflows/docker.yml)
5+
[![codecov](https://codecov.io/gh/elte-collective-intelligence/student-particle-swarm-optimization/branch/main/graph/badge.svg)](https://codecov.io/gh/elte-collective-intelligence/student-particle-swarm-optimization)
6+
[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC--BY--NC--ND%204.0-blue.svg)](LICENSE)
7+
8+
## About the project
File renamed without changes.
File renamed without changes.
File renamed without changes.

marl-task/conf/env/swarm.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)