Add CI workflow, DCO check, NOTICE, and CONTRIBUTING #157
Workflow file for this run
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| if [ -f pyproject.toml ]; then pip install -e .; fi | |
| - name: Run tests | |
| run: | | |
| if [ -z "$(find tests -type f -name '*.py' 2>/dev/null)" ]; then | |
| echo "No test files found (project scaffold only)" | |
| exit 0 | |
| fi | |
| python -m unittest discover -s tests -v |