Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install pytest
pip install -r requirements.txt

- name: Run tests
run: pytest
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PYTHON ?= python3
VENV_NAME ?= Argos

.PHONY: help install install-deps install-dev env env-persist \
test test-verbose \
mermaid-pull render-diagrams render-diagrams-force \
docs-deps docs-build docs-build-strict docs-serve docs-deploy docs-clean

Expand All @@ -19,6 +20,10 @@ help:
@echo " make env Print the environment variables needed for pyArgos"
@echo " make env-persist Add PYTHONPATH to ~/.bashrc (prompts for confirmation)"
@echo ""
@echo " Testing:"
@echo " make test Run all tests"
@echo " make test-verbose Run all tests with full output"
@echo ""
@echo " Documentation:"
@echo " make docs-build Build full site (render diagrams + mkdocs build)"
@echo " make docs-serve Start local MkDocs preview server"
Expand Down Expand Up @@ -96,6 +101,14 @@ env-persist:
fi; \
fi

# --- Testing ---

test:
pytest

test-verbose:
pytest -v --tb=long

# --- Documentation ---

mermaid-pull:
Expand Down
6 changes: 6 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts = -v --tb=short
Loading