-
Notifications
You must be signed in to change notification settings - Fork 293
45 lines (43 loc) · 1.39 KB
/
feedtest.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
43
44
45
name: Test feeds
on:
schedule:
- cron: '0 6 * * 3' # Run every Wednesday at 06:00 UTC
jobs:
testfeeds:
runs-on: ubuntu-latest
env:
YETI_REDIS_HOST: localhost
YETI_REDIS_PORT: 6379
YETI_REDIS_DATABASE: 0
YETI_ARANGODB_HOST: localhost
YETI_ARANGODB_PORT: 8529
YETI_ARANGODB_DATABASE: yeti
YETI_ARANGODB_USERNAME: root
YETI_ARANGODB_PASSWORD: ""
YETI_AUTH_SECRET_KEY: SECRET
YETI_AUTH_ALGORITHM: HS256
YETI_AUTH_ACCESS_TOKEN_EXPIRE_MINUTES: 30
YETI_AUTH_ENABLED: False
YETI_SYSTEM_PLUGINS_PATH: ./plugins
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- run:
sudo apt-get update && sudo apt-get install -y python3-pip && sudo pip3 install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install Python dependencies
run: poetry install --no-root --with plugins
- name: Copy dummy config file
run: cp yeti.conf.sample yeti.conf
- name: Start redis & arangodb conainers
run: docker compose -f extras/docker/dev/docker-compose.yaml up -d redis arangodb
- name: Run test feeds
run: |
poetry run python -m unittest discover -s tests/ -p 'feeds.py'