chore: switch project messaging to global positioning #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install test dependencies | |
| run: pip install -r requirements-dev.txt | |
| - name: Run test suite | |
| run: | | |
| python - <<'PY' | |
| import importlib.util | |
| from pathlib import Path | |
| repo = Path("tests") | |
| for filename in ["test_image_resize_node.py", "test_registry_metadata.py"]: | |
| spec = importlib.util.spec_from_file_location(filename[:-3], repo / filename) | |
| mod = importlib.util.module_from_spec(spec) | |
| spec.loader.exec_module(mod) | |
| for name in [n for n in dir(mod) if n.startswith("test_")]: | |
| getattr(mod, name)() | |
| print("ok", filename, name) | |
| PY |