Skip to content

Actually fix chrome extension loading (#69) #68

Actually fix chrome extension loading (#69)

Actually fix chrome extension loading (#69) #68

Workflow file for this run

# Install Python dependencies, run tests, and lint with flake8
# See https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:4.4
options: >-
--health-cmd mongo
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Pytest with coverage
env:
TEST_DB: 1
MONGODB_URI: mongodb://localhost:27017/
DATABASE: test
run: |
coverage run -m pytest
coverage report --ignore-errors --show-missing
coverage html --ignore-errors
- name: Upload coverage artifact
uses: actions/[email protected]
with:
name: coverage
path: htmlcov/index.html