Skip to content

fix matlab agent path and autopep8 #2

fix matlab agent path and autopep8

fix matlab agent path and autopep8 #2

name: MATLAB Agent Tests
on:
push:
paths:
- "agents/matlab/**"
- ".github/workflows/matlab-agent-tests.yml"
pull_request:
paths:
- "agents/matlab/**"
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: agent/matlab # directory del progetto Poetry
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python -
env:
POETRY_HOME: ${{ runner.temp }}/poetry
- name: Add Poetry to PATH
run: echo "${{ runner.temp }}/poetry/bin" >> $GITHUB_PATH
- name: Install dependencies (dev incluse)
run: poetry install --with dev
- name: Run pytest (unit + integration) con coverage
run: poetry run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}