Skip to content

build(deps-dev): bump @commitlint/config-conventional from 18.6.0 to 19.1.0 #307

build(deps-dev): bump @commitlint/config-conventional from 18.6.0 to 19.1.0

build(deps-dev): bump @commitlint/config-conventional from 18.6.0 to 19.1.0 #307

Workflow file for this run

# Runs several tests when a pull request is created.
name: Test
on:
pull_request:
jobs:
spell-check:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
exclude: |
./CHANGELOG.md
alex: # Checks docs for inconsiderate writing.
name: runner / alex
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-alex@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
markdown-lint: # Lints the markdown code.
name: runner / remark-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
- 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@v4
- name: Install system dependencies
run: sudo apt-get update; sudo apt-get install libopenmpi-dev
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install the stable_learning_control package with its dependencies
run: |
pip install .[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-20.04 # NOTE: Snapshots were created on ubuntu 20.04.
strategy:
fail-fast: false # Run all matrix jobs.
matrix:
python-version: [3.8, 3.9, "3.10"] # Supported python versions.
steps:
- name: Checkout stable-learning-control repository
uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update; sudo apt-get install libopenmpi-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install the stable_learning_control package with its dependencies
run: |
pip install .[dev]
- name: Test with Pytest
run: |
set -o pipefail
pytest -vv --ignore=tests/algos --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 Pytest test results to artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: pytest-results-${{ matrix.python-version }}
path: pytest/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}