-
Notifications
You must be signed in to change notification settings - Fork 138
42 lines (34 loc) · 1005 Bytes
/
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: Python Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
jekyll:
name: Build and Test Jekyll
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: jerryjvl/jekyll-build-action@v1
- name: Serve the site
run: |
cd _site
docker run -d -p 80:8080 --name jekyll_serve syntaqx/serve
docker cp ./ jekyll_serve:/var/www
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install software
run: sudo apt-get install -y chromium-browser
- name: Install the necessary packages
run: pip install requests webdriver-manager selenium chromedriver-autoinstaller
- name: Run Server and Test
run: |
cd tests;
echo 'SERVER_URL = "http://localhost/"' > a_config_test.py
python3 -m unittest discover -v -f