update test #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Python and JS Test WorkflowInvalid workflow file
|
||
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 |