Skip to content

Pre v0.9.12

Pre v0.9.12 #144

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
id-token: write
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-cov pytest-asyncio
- name: Run unit tests with coverage
run: |
pytest --cov=orka --cov-report=xml --cov-report=term-missing --cov-fail-under=80 -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
override_commit: ${{ github.sha }}
override_branch: ${{ github.ref_name }}
commit_parent: true
slug: marcosomma/orka-reasoning
verbose: true
working-directory: .
if: always() # Upload coverage even if tests fail
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
coverage.xml
.coverage
if: always()