# Tests on every push and pull request (Gitea Actions; GitHub's copy is .github/workflows/ci.yml). # The branch rule for main (docs/REPO_SETTINGS.md) requires this check, named "CI / test". name: CI on: push: branches: [main] pull_request: jobs: test: runs-on: ubuntu-latest # a runner label on the server (act_runner); change it if the server uses another steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install -r requirements.txt - run: npm test - name: graph.json is up to date run: node analysis/network/build-graph.js && git diff --exit-code data/public/graph.json - name: the page builds run: node site/build.js