Skip to content

update test

update test #57

name: Python and JS Test Workflow
on: [push, pull_request]
defaults:
runs-on: ubuntu-latest

Check failure on line 6 in .github/workflows/automated_testing.yml

View workflow run for this annotation

GitHub Actions / Python and JS Test Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/automated_testing.yml (Line: 6, Col: 3): Unexpected value 'runs-on' .github/workflows/automated_testing.yml (Line: 7, Col: 3): Unexpected value 'steps'
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: Install Selenium
run: python -m pip install selenium
- name: Install pytest
run: python -m pip install pytest
- name: Run Python tests with pytest
run: pytest testing/test_server.py
acceptance-test:
steps:
- name: Install Selenium
run: python -m pip install selenium
- name: Run acceptance tests with pytest
run: pytest testing/acceptance_test.py
test-javascript:
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install JavaScript dependencies
run: npm install
- name: Run Jest tests
run: npm test