krz/crumb

A local alternative to your browser's history.

clone: git clone https://gitbay.org/krz/crumb.git

main: .github/workflows/test.yml · raw

 1name: Test
 2
 3# crumb had a test suite from one commit that had never passed: four tests, all
 4# failing. They are fixed and this runs them, so the next break is visible.
 5on:
 6  pull_request:
 7  push:
 8    branches: [main]
 9
10permissions:
11  contents: read
12
13jobs:
14  test:
15    runs-on: ubuntu-latest
16    steps:
17      - uses: actions/checkout@v7
18
19      - uses: actions/setup-python@v7
20        with:
21          python-version: '3.11'
22
23      - name: Install
24        run: pip install -r requirements-dev.txt
25
26      - name: Tests
27        run: python -m pytest -q
28
29      # The webextension half of crumb is not covered by the Python tests, and a
30      # malformed manifest is silent until a browser refuses to load it.
31      - name: Extension manifest is valid JSON
32        run: python -c "import json; json.load(open('crumb_extension/manifest.json')); print('manifest.json parses')"