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

Update MS with Dev #4

Merged
merged 63 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
42ed9a0
Fix Memory/MO data types
EltonCN Sep 20, 2024
8e4ca84
"threshould" typo fix
EltonCN Oct 4, 2024
f186201
Remove unused files
EltonCN Oct 4, 2024
44ceb1b
Core tests implementation (partial)
EltonCN Oct 4, 2024
45b79c6
Core tests
EltonCN Oct 11, 2024
a61f87e
Test pipeline configuration
EltonCN Oct 11, 2024
6de6347
Update .gitignore
EltonCN Oct 11, 2024
01d714e
Coverage check
EltonCN Oct 11, 2024
3e6c803
Set coverage minimum to 75%
EltonCN Oct 11, 2024
d73f62b
Introduction to CST
EltonCN Oct 18, 2024
dc2b288
Fix questions about introduction
EltonCN Oct 18, 2024
2065cb3
Add shape library
EltonCN Oct 18, 2024
321b63b
Example: Implementing a Architecture
EltonCN Oct 18, 2024
3108287
Example Introduction: stateless codelet
EltonCN Oct 18, 2024
e60d45a
Publisher Subscriber example
EltonCN Oct 18, 2024
f064510
Activationa and Monitoring example
EltonCN Oct 18, 2024
9592312
Add install cst_python to examples
EltonCN Oct 18, 2024
e3eff24
"Open in" badges
EltonCN Oct 18, 2024
f67ba27
Separate coverage check workflow
EltonCN Oct 18, 2024
b0e84e8
Change examples to fix tests
EltonCN Oct 18, 2024
90c4bf1
Remove pip cache from CI
EltonCN Oct 18, 2024
376e411
Fix coverage pipeline
EltonCN Oct 18, 2024
e73489a
Update test_activation_and_monitoring.py
EltonCN Oct 18, 2024
ddfbc1b
Change setup.cfg to pyproject.toml
EltonCN Oct 18, 2024
80cc652
Auto package version
EltonCN Oct 18, 2024
ac4e1bb
Merge pull request #1 from H-IAAC/dev
EltonCN Oct 18, 2024
c6aaa0c
Fix examples badges
EltonCN Oct 18, 2024
3c5bcb3
PyPI publish workflow
EltonCN Oct 18, 2024
5062c83
Create CITATION.cff
EltonCN Nov 8, 2024
f40dd07
Fix CITATION.cff
EltonCN Nov 8, 2024
6359f80
README authors and acknowledgements
EltonCN Nov 8, 2024
9e2c1be
README DOI
EltonCN Nov 8, 2024
e7ce34f
Configure documentation
EltonCN Nov 8, 2024
c3317d2
Codelet doc
EltonCN Nov 8, 2024
1d4b893
Core code documentation
EltonCN Nov 26, 2024
6c264a6
Fix examples figures
EltonCN Nov 26, 2024
a9d6ae2
Documentation workflow
EltonCN Nov 26, 2024
c27d7df
Type check
EltonCN Nov 26, 2024
794f9da
Fix Activation and Monitoring test
EltonCN Nov 26, 2024
a9816eb
Update minimum Python Version to 3.10
EltonCN Nov 26, 2024
7a65ae1
Doc differences from CST-Java
EltonCN Nov 26, 2024
2d3e4fe
Update Differences from CST-Java.md
EltonCN Nov 26, 2024
a39b12f
Update test_activation_and_monitoring.py
EltonCN Nov 26, 2024
26b59d8
Generate citation code
EltonCN Nov 26, 2024
a6d50f6
Update README.md
EltonCN Nov 26, 2024
607db9a
Documentation Badge
EltonCN Nov 26, 2024
31637f4
Fix test
EltonCN Nov 26, 2024
045c0f1
Update Copyright and license
EltonCN Nov 26, 2024
ba25fdb
Merge pull request #2 from H-IAAC/dev
EltonCN Nov 26, 2024
9d90459
HOTFIX: Documentation pipeline Python version
EltonCN Nov 26, 2024
c74f8b4
HOTFIX: documentation pipeline package install
EltonCN Nov 26, 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
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
58 changes: 58 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Simple workflow for deploying static content to GitHub Pages
name: Build and deploy documentation

on:
# Runs on pushes targeting the default branch
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[doc_generation]
- name: Install pandoc
uses: pandoc/actions/setup@v1
- name: Build documentation
run: |
cd docs
make html
cd ..
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs dir
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
34 changes: 0 additions & 34 deletions .github/workflows/pipeline-ubuntu.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/pipeline-windows.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
release-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest

needs:
- release-build

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
url: https://pypi.org/project/cst-python/

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
59 changes: 59 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test
on:
push:
branches: [ dev, main ]
pull_request:
branches: [ dev, main ]

jobs:
test:

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

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,gym]

- 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

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

steps:
- uses: actions/checkout@v2

- name: Retrieve coverage report
uses: actions/download-artifact@v4
with:
name: coverage_report
- name: Coverage Check
run: |
python3 tests/check_coverage.py
Loading
Loading