Skip to content

Commit

Permalink
testing update
Browse files Browse the repository at this point in the history
  • Loading branch information
tjc234 committed Dec 4, 2023
1 parent bf49740 commit 452d72d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: Python and JS Test Workflow

on: [push, pull_request]

defaults:
runs-on: ubuntu-latest

jobs:
test-server:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -30,14 +28,14 @@ jobs:
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
run: |
python -m pip install selenium
pytest testing/test_server.py
acceptance-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -60,14 +58,14 @@ jobs:
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 acceptance tests with pytest
run: pytest testing/acceptance_test.py
run: |
python -m pip install selenium
pytest testing/acceptance_test.py
test-javascript:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -81,4 +79,4 @@ jobs:
run: npm install

- name: Run Jest tests
run: npm test
run: npm test

0 comments on commit 452d72d

Please sign in to comment.