Update gui_example.py #186
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: python-tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8] | |
node: [18] # might need to update this manually? | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
# pip install -e .,already inside requirements-dev.txt | |
- name: Test with pytest | |
run: | | |
pytest tests/ --cov=sovabids/ --cov-report=xml --verbose -s | |
- name: Build docs | |
run: | | |
cd docs | |
make clean | |
make html | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml | |
- name : Test with web-validator | |
run: | | |
/bin/bash tests/test_web_validator.sh |