Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Storage and Gym codelet #6

Merged
merged 52 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
be52475
Mechanism exploration
EltonCN Aug 30, 2024
d415726
MemoryStorageCodelet
EltonCN Sep 6, 2024
837723d
Convert MS to Codelet
EltonCN Sep 13, 2024
054b59a
Fix Memory/MO data types
EltonCN Sep 20, 2024
1f52cf6
MS: Fix type safety warning
EltonCN Sep 20, 2024
b565114
Move MS and MemoryEncoder to module
EltonCN Sep 27, 2024
25868a5
Codelet: print exception in proc
EltonCN Nov 26, 2024
da47ccb
Gym experiment
EltonCN Nov 26, 2024
6826ea4
GymCodelet integrated
EltonCN Nov 27, 2024
13875fb
Added "gym" dependencies
EltonCN Nov 27, 2024
8d9befd
Gym Codelet example
EltonCN Nov 27, 2024
34ae5ac
Gym example in documentation
EltonCN Nov 27, 2024
d5a2198
GymCodelet tests
EltonCN Nov 27, 2024
c2e63e8
Merge pull request #3 from H-IAAC/gym
EltonCN Nov 27, 2024
44915f1
Fix test pipeline package install
EltonCN Nov 27, 2024
efb0a58
Fix GymCodelet typecheking
EltonCN Nov 27, 2024
6a54961
RawMemory class documentation
EltonCN Nov 27, 2024
bff545e
Merge branch 'memory_storage' of https://github.com/H-IAAC/CST-Python…
EltonCN Nov 28, 2024
c27df9a
Merge pull request #4 from H-IAAC/dev
EltonCN Nov 28, 2024
bdc45bc
MS type check
EltonCN Nov 28, 2024
edc19f3
MS logging
EltonCN Nov 28, 2024
5cbcfca
MS logical time
EltonCN Dec 1, 2024
65ddd97
MS tests
EltonCN Dec 1, 2024
952245e
Tests CI fix
EltonCN Dec 1, 2024
ad9a56d
Update test.yml
EltonCN Dec 1, 2024
04ae5d8
Test: fix Redis port
EltonCN Dec 1, 2024
3e4bc99
Tests CI OS check
EltonCN Dec 1, 2024
2a17a4a
Update test.yml
EltonCN Dec 1, 2024
acb1e58
Test reusable test workflow
EltonCN Dec 1, 2024
b95149b
Update test.yml
EltonCN Dec 1, 2024
8194260
Update test.yml
EltonCN Dec 1, 2024
2f70a76
Update test.yml
EltonCN Dec 1, 2024
72958d7
Try composite action
EltonCN Dec 1, 2024
0f0b517
Update action.yml
EltonCN Dec 1, 2024
acce3a7
Update action.yml
EltonCN Dec 1, 2024
abda3d2
Fix inner action and OS specific test
EltonCN Dec 1, 2024
45ffbbd
Update action.yml
EltonCN Dec 1, 2024
c884418
Fix tests
EltonCN Dec 1, 2024
7e0a9b5
Ignore dev folder in tests
EltonCN Dec 1, 2024
d5c4da5
Supports Redis client args
EltonCN Dec 2, 2024
0588cd5
Redis args test
EltonCN Dec 2, 2024
abb63f2
MS documentation
EltonCN Dec 2, 2024
ce45936
MS documentation
EltonCN Dec 2, 2024
d15a242
Memory Storage example
EltonCN Dec 2, 2024
64b2f3d
Memory Storage example test
EltonCN Dec 2, 2024
cfc55ab
Test Lamport Time
EltonCN Dec 2, 2024
df47552
Fix tests MS
EltonCN Dec 2, 2024
39428e9
MS example test skip if no Redis
EltonCN Dec 4, 2024
f8ebb62
Test memory encoder
EltonCN Dec 4, 2024
30a8a93
Typo fix
EltonCN Dec 4, 2024
f91088d
Test with MS Java
EltonCN Dec 9, 2024
459faa5
Merge pull request #5 from H-IAAC/memory_storage
EltonCN Dec 9, 2024
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
66 changes: 38 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,56 @@ on:
branches: [ dev, main ]

jobs:
test:

runs-on: ${{ matrix.os }}
test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]

services:
# Label used to access the service container
redis:
# 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
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install pytest-cov
python3 -m pip install -e .[tests]
- uses: actions/checkout@v2

- uses: ./.github/workflows/test_inner
with:
os: ubuntu-latest
python-version: ${{ matrix.python-version }}

- name: Tests
run: |
pytest --cov=cst_python --cov-report json
shell: bash

- if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'}}
name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage_report
path: coverage.json
test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

- uses: ./.github/workflows/test_inner
with:
os: windows-latest
python-version: ${{ matrix.python-version }}

coverage-check:
runs-on: ubuntu-latest
needs:
- test
- test-linux

steps:
- uses: actions/checkout@v2
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/test_inner/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test inner

inputs:
os:
required: true
type: string
python-version:
required: true
type: string

runs:
using: composite
steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install pytest-cov
python3 -m pip install -e .[tests,gym,memory_storage]

- name: Tests
shell: bash
run: |
pytest --cov=cst_python --cov-report json

- if: ${{inputs.os == 'ubuntu-latest' && inputs.python-version == '3.12'}}
name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage_report
path: coverage.json

Loading
Loading