mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-22 08:29:07 -04:00

This adds two CI runs: a quick one that happens for every pull request and merge to master, and a longer one that happens daily. This also adds a new installation group to setup.py because the `easy` group isn't currently installable, and some of the dependencies specified there need to be present for the tests to run.
32 lines
553 B
YAML
32 lines
553 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
version: ['3.8', '3.12']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.version }}
|
|
|
|
- uses: ./.github/workflows/setup
|
|
|
|
- name: Run tests
|
|
run: |
|
|
py.test --tb=native --verbose tests/test_cli.py tests/test_units.py
|