-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include several tests and minor fixes (#4)
* 🧪 Tests: Update the tests * 🧪 Tests: Add tests for the OptSolver * ⚰️ Remove: Delete old and useless files * 🩹 Patch: Add a simple addition. This allow us to add a initial value for the Variables * 🧪 Tests: Add a fix to the `value` method, to now set the closes value limit when we're trying to update the value * 📝 Docs: Add documentation for the gradient method * ✏️ Typo: Fix minor typos * 🐛 Bug: Fix a minor bug in the libraries for the engine * 🧪 Test: Add tests for the gradient descent method * 🔖 Tag: Bump version `0.3.1` * ⬆️ Dependencies: Upgrade the lock for Cargo and poetry * 👷 CI: Add different CI to evaluate the code * ✅ Test: Evaluate the CI * 🚚 Rename: Change the name to `action.yml` * 👷 CI: Add tests for the CI * ➕ Dependencies: Add pylint as dev dependency * 👷 CI: Update the CI to install the python version `3.10` * 💚 CI: Upgrade the general CI * 💚 CI: Delete an useless command in th CI * 👷 CI: Add a command for the tests * 👷 CI: Add the `--release` flag in the Rust CI * ⚡️ Improve: Improve the Rust code with minor changes * 👷 CI: Add final line to the CI * 👷 CI: Add an etra layer of evaluation in Rust CI
- Loading branch information
1 parent
d9f399b
commit c31a45c
Showing
22 changed files
with
530 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Python CI 🐍 | ||
description: CI that evaluates the Python linter | ||
|
||
# ----------------------------------- # | ||
# DEFINE THE STEPS # | ||
# ----------------------------------- # | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout code 🔍 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 🐍 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies 🏗️ | ||
shell: bash | ||
run: | | ||
pip install poetry | ||
poetry install | ||
- name: Evaluate the linter ☢️ | ||
shell: bash | ||
run: poetry run pylint pymath_compute/ --rcfile pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Rust CI 🦀 | ||
description: Action that check the Rust code using the built-in cargo check | ||
|
||
# ----------------------------------- # | ||
# DEFINE THE STEPS # | ||
# ----------------------------------- # | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout code 🔍 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Rust 🦀 | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Check Rust code 🩺 | ||
shell: bash | ||
run: cargo check --release | ||
|
||
- name: Build Rust code 🧱 | ||
shell: bash | ||
run: cargo build --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Tests CI 🧪 | ||
description: CI Action to perform the tests execution | ||
|
||
# ----------------------------------- # | ||
# DEFINE THE STEPS # | ||
# ----------------------------------- # | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout code 🔍 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 🐍 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies 🏗️ | ||
shell: bash | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry run maturin develop --release | ||
- name: Run tests 🧪 | ||
shell: bash | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Continuous Integration Workflow 👾 | ||
|
||
# Controls when the action will run. We only want that this action to happens when | ||
# we open a pull request that points to main | ||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
# ----------------------------------- # | ||
# DEFINE THE JOBS # | ||
# ----------------------------------- # | ||
|
||
jobs: | ||
rust_ci: | ||
runs-on: ubuntu-latest | ||
name: Run Rust CI 🦀 | ||
steps: | ||
- uses: ricardoleal20/pymath_compute/.github/actions/rust_ci@ricardo/AddSolverTests | ||
|
||
python_ci: | ||
runs-on: ubuntu-latest | ||
name: Run Python CI 🐍 | ||
steps: | ||
- uses: ricardoleal20/pymath_compute/.github/actions/python_ci@ricardo/AddSolverTests | ||
|
||
tests_ci: | ||
runs-on: ubuntu-latest | ||
name: Run tests 🧪 | ||
steps: | ||
- uses: ricardoleal20/pymath_compute/.github/actions/tests_ci@ricardo/AddSolverTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.