mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-10 12:18:30 +03:00
* Don't clutter logs with info about generic dropin * Add ubuntu-latest to unit tests This is currently failing due to an issue with oscrypto and newer openssl https://github.com/wbond/oscrypto/issues/78#issuecomment-1756317472 * fix oscrypto version for ubuntu 24 compatibility (boto3 too see #180) --------- Co-authored-by: msramalho <19508417+msramalho@users.noreply.github.com>
43 lines
907 B
YAML
43 lines
907 B
YAML
name: Core Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- src/**
|
|
pull_request:
|
|
paths:
|
|
- src/**
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
os: [ubuntu-22.04, ubuntu-latest]
|
|
defaults:
|
|
run:
|
|
working-directory: ./
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Poetry
|
|
run: pipx install poetry
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'poetry'
|
|
|
|
- name: Install dependencies
|
|
run: poetry install --no-interaction --with dev
|
|
|
|
- name: Run Core Tests
|
|
run: |
|
|
poetry run auto-archiver --version || true
|
|
poetry run pytest -ra -v -m "not download"
|