Separate CI for download tests and core tests

pull/163/head
Patrick Robertson 2025-01-13 16:27:46 +01:00
rodzic 63973e2ce7
commit 2353f9d6a5
2 zmienionych plików z 39 dodań i 9 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

@ -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"