-
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
name: Test
on:
push:
branches:
- "**"
- "!master"
env:
FILEPATH: ./testconfig.ini
CRON: "* * * * *"
jobs:
Test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: "pip"
- name: Install PyCurl
uses: awalsh128/[email protected]
with:
packages: libcurl4-openssl-dev libssl-dev python3-pycurl
version: 1.0
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- name: Generate config file
run: |
python3 main.py -h
python3 main.py --generate --configfile ${{ env.FILEPATH }}
cat ${{ env.FILEPATH }}
- name: Prepare test config file
run: |
echo "${{ secrets.TEST_CONFIG }}" > ${{ env.FILEPATH }}
- name: Run app
run: |
python3 main.py --configfile ${{ env.FILEPATH }} --continuous --cron "${{ env.CRON }}" --run-once 2>&1