Skip to content

Commit

Permalink
update testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tjc234 committed Dec 4, 2023
1 parent 27b8ded commit a8cd218
Showing 1 changed file with 34 additions and 24 deletions.
58 changes: 34 additions & 24 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,60 @@ name: Python and JS Test Workflow

on: [push, pull_request]

defaults:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up headless Chrome
run: |
sudo apt-get update
sudo apt-get install -y libgconf-2-4
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
jobs:
test-server:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up headless Chrome
run: |
sudo apt-get update
sudo apt-get install -y libgconf-2-4
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
- name: Install Selenium
run: python -m pip install selenium

- name: Run Python tests with pytest
run: pytest testing/test_server.py

acceptance-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Selenium
run: python -m pip install selenium

- name: Run acceptance tests with pytest
run: pytest testing/acceptance_test.py

test-javascript:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit a8cd218

Please sign in to comment.