Skip to content

Commit

Permalink
Merge pull request #8 from soulshake/ci
Browse files Browse the repository at this point in the history
Run tests in CI
  • Loading branch information
ikollipara authored Jun 25, 2024
2 parents 1e5080d + f6177f9 commit b6de25b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Python Package

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11]
meili-version: [1.7, 1.8]

services:
meili:
image: getmeili/meilisearch:v${{ matrix.meili-version }}
ports:
- 7700:7700
env:
MEILI_HTTP_ADDR: meili:7700
MEILI_LOG_LEVEL: INFO

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test package
run: ./manage.py test

0 comments on commit b6de25b

Please sign in to comment.