-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 922 Bytes
/
test.yaml
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
# continuous integration
# run tests for repo
---
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container: python:3.11
# Service containers to run with `container-job`
services:
# Label used to access the service container
redis:
# DockerHub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
SESSION_REDIS: redis://redis:6379/0
steps:
- uses: actions/checkout@v1
- name: Dump installed modules
run: python3 -m pip freeze --all
- name: Upgrade setuptools
run: python3 -m pip install --upgrade setuptools packaging
- name: Install test runner
run: python3 -m pip install tox
- name: Run tests
run: tox