Skip to content

Update code coverage comment #83

Update code coverage comment

Update code coverage comment #83

Workflow file for this run

name: Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
services:
meilisearch:
image: getmeili/meilisearch:latest
ports:
- 7800:7700
env:
MEILI_MASTER_KEY: "masterkey"
MEILI_NO_ANALYTICS: true
MEILI_ENV: development
MEILI_LOG_LEVEL: DEBUG
strategy:
max-parallel: 4
matrix:
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/testing.txt
- name: Run Tests
run: |
coverage run --source=openedx_search_api manage.py test --settings=openedx_search.settings.test
coverage xml
- name: Get Cover
uses: orgoro/[email protected]
with:
coverageFile: ./coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}