stackchain-dashboard/tests/test_ci_workflow.py
timmy f2a14467b2
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / build-frontend (pull_request) Successful in 25s
fix: use Gitea-compatible artifact upload
2026-08-04 14:59:22 +00:00

18 lines
491 B
Python

from pathlib import Path
WORKFLOW = Path(".gitea/workflows/ci.yml")
def test_ci_uses_gitea_compatible_artifact_action():
text = WORKFLOW.read_text()
assert "actions/upload-artifact@v4" not in text
assert "actions/upload-artifact@v3" in text
def test_ci_installs_declared_requirements_before_tests():
text = WORKFLOW.read_text()
install = text.index("pip install -r requirements.txt")
tests = text.index("python3 -m pytest tests/ -q")
assert install < tests