diff --git a/.github/workflows/ai_review.yml b/.github/workflows/ai_review.yml index 9c7daf7..cf834d6 100644 --- a/.github/workflows/ai_review.yml +++ b/.github/workflows/ai_review.yml @@ -9,14 +9,27 @@ on: jobs: codacy-analysis-cli: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ "3.10.13" ] steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install scikit-learn - name: Run Tests and Generate Coverage Report run: | + wget https://files.dice-research.org/projects/Ontolearn/KGs.zip + unzip KGs.zip pip install pytest pytest-cov - pytest --cov=my_project --cov-report=xml # Generates coverage.xml + pytest --cov=tests --cov-report=xml # Generates coverage.xml - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@master