Skip to content

Commit

Permalink
Merge pull request #9 from wzyboy/feat/pytest
Browse files Browse the repository at this point in the history
feat: add pytest
  • Loading branch information
wzyboy committed Jul 9, 2023
2 parents 8e6d199 + 6dbd2c5 commit d300de2
Show file tree
Hide file tree
Showing 11 changed files with 196 additions and 71 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pytest.yaml
@@ -0,0 +1,31 @@
---
name: pytest
on: push

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Setup Elasticsearch
run: |
pushd tests/elasticsearch
docker compose up -d --wait
popd
- name: Run pytest
run: |
pip install -r requirements-dev.txt
pytest -v
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
venv/
media
media/
config.py

0 comments on commit d300de2

Please sign in to comment.