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

refactor: cleanup package, tests and ci #251

Merged
merged 7 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .alexignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CHANGELOG.md
CHANGELOG.md
6 changes: 6 additions & 0 deletions .alexrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"allow": [
"hooks",
"husky"
]
}
30 changes: 0 additions & 30 deletions .github/workflows/autotag_ci.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/bayesian_learning_control.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Runs tests after a pull request is merged.
name: Bayesian Learning Control
on:
push:
branches:
- main
tags-ignore:
- v*.*.*
jobs:
markdown-lint: # Lints the markdown code
name: runner / remark-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check markdown code quality using remark-lint
uses: reviewdog/action-remark-lint@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
black: # Check python code format
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-black@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
flake8: # Lints python code
name: runner / flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install the bayesian_learning_control package with its dependencies
run: |
pip install -e .[dev]
- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
python-tests:
name: python-tests (Testing)
runs-on: ubuntu-latest
strategy:
fail-fast: false # Run all matrix jobs
matrix:
python-version: [3.8, 3.9, "3.10"] # Supported python versions
steps:
- name: Checkout bayesian-learning-control repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install the python package with its dependencies
run: |
pip install -e .[dev]
- name: Test with Pytest
run: |
set -o pipefail
pytest --cache-clear --html=pytest/${{ matrix.python-version }}/html/results.html --junitxml=pytest/${{ matrix.python-version }}/xml/results.xml --cov --cov-report=html:pytest/${{ matrix.python-version }}/cov/pytest-coverage.txt --cov-report=term-missing | tee pytest-coverage.txt
set +o pipefail
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
141 changes: 0 additions & 141 deletions .github/workflows/code_quality_ci.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/docs_check_ci.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/docs_publish_ci.yml

This file was deleted.

Loading
Loading