| 1 |
name: Run unittests |
| 2 |
on: [push, pull_request] |
| 3 |
jobs: |
| 4 |
unittests: |
| 5 |
runs-on: ubuntu-latest |
| 6 |
strategy: |
| 7 |
matrix: |
| 8 |
python-version: [3.8, 3.9, 3.10, 3.11, 3.12] |
| 9 |
services: |
| 10 |
mongodb: |
| 11 |
image: mongo |
| 12 |
ports: |
| 13 |
- 27017:27017 |
| 14 |
dynamodb: |
| 15 |
image: amazon/dynamodb-local |
| 16 |
ports: |
| 17 |
- 8000:8000 |
| 18 |
steps: |
| 19 |
- uses: actions/checkout@v4 |
| 20 |
- uses: supercharge/[email protected] |
| 21 |
- uses: niden/actions-memcached@v7 |
| 22 |
- name: Install testing requirements |
| 23 |
run: pip3 install -r requirements/dev.txt |
| 24 |
- name: Run tests |
| 25 |
run: pytest tests |