mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
Separate CI for download tests and core tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Tests
|
||||
name: Core Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10", "3.11"]
|
||||
python-version: ["3.10", "3.11", "3.12"]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./
|
||||
@@ -30,11 +30,6 @@ jobs:
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install .
|
||||
- name: Make envfile
|
||||
uses: SpicyPizza/create-envfile@v1.3
|
||||
with:
|
||||
envkey_EXAMPLE: "example env value - if we will use it (?)"
|
||||
directory: ./
|
||||
- name: Run Tests
|
||||
- name: Run Core Tests
|
||||
run: |
|
||||
pytest
|
||||
pytest -m "not download"
|
||||
35
.github/workflows/tests-download.yaml
vendored
Normal file
35
.github/workflows/tests-download.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Download Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, staging ]
|
||||
paths:
|
||||
- src/**
|
||||
pull_request:
|
||||
branches: [ main, staging ]
|
||||
paths:
|
||||
- src/**
|
||||
|
||||
jobs:
|
||||
test_back:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10"]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install Package (Local)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install .
|
||||
- name: Run Download Tests
|
||||
run: |
|
||||
pytest -m "download"
|
||||
Reference in New Issue
Block a user