Sets up Playwright, adds a couple "smoke tests" to make sure the site's basic functions are working, and modifies the Django CI workflow to run the Playwright tests.
Changes including adding support for authenticating our GitHub API calls with a GITHUB_TOKEN environment variable instead of the private key file. A valid GITHUB_TOKEN is provided by default to every GitHub Action run, so using that means we don't have to store our private key file as a repository secret.
I also added a Django command for populating articles, which I ended up not needing, but I'm leaving it in since it could be handy to populate the articles with ./manage.py populate_articles instead of going through the web UI.
Closes #33.
Sets up Playwright, adds a couple "smoke tests" to make sure the site's basic functions are working, and modifies the Django CI workflow to run the Playwright tests.
Changes including adding support for authenticating our GitHub API calls with a
GITHUB_TOKEN
environment variable instead of the private key file. A validGITHUB_TOKEN
is provided by default to every GitHub Action run, so using that means we don't have to store our private key file as a repository secret.I also added a Django command for populating articles, which I ended up not needing, but I'm leaving it in since it could be handy to populate the articles with
./manage.py populate_articles
instead of going through the web UI.