feat: move settings to app settings #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
thresholdAll: 0.7 | |
token: ${{ secrets.GITHUB_TOKEN }} |