@ -1,8 +1,8 @@
name: Test
name: Build & Test
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out source code
@ -26,4 +26,4 @@ jobs:
run: make
- name: Run tests
run: make run & make large-tests
run: make test
@ -66,6 +66,12 @@ install-deps:
run:
cd build && ./notes
.PHONY: large-tests
.PHONY: test
large-tests:
test: all
pytest
@cd build ;\
./notes --port=8040 &\
NOTES_PID=$$! ;\
pytest .. ;\
PYTEST_RESULT=$$? ;\
kill $$NOTES_PID ;\
exit $$PYTEST_RESULT
@ -3,7 +3,7 @@ from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
INDEX_URL = "http://localhost:8050"
INDEX_URL = "http://localhost:8040"
def _launch():