-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (40 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Django Thumbnails
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
strategy:
matrix:
python-version: [3.10.9, 3.11, 3.12]
django-version: [3.2.25, 4.0, 4.1.4, 4.2.14, 5.0.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install Django==${{ matrix.django-version }} times da-vinci pillow redis shortuuid
sudo apt-get install -qq optipng
env:
REDIS_HOST: localhost
REDIS_PORT: 6379
- name: Test check
run: |
make test