name: tests on: push: pull_request: workflow_dispatch: jobs: pytest: runs-on: ubuntu-latest # Same image the pipelines publish from, so the pandoc contract tests check # the pandoc that actually renders the wiki, not whatever a fresh runner has. container: image: pi5-16.local:3005/novoyuuparosk-wiki/novoyuuparosk-wiki-runner:4f134af steps: - name: Checkout auto-wiki env: FAPAT: ${{ secrets.FAPAT }} URL_TO_GITEA: ${{ vars.URL_TO_GITEA }} REF: ${{ github.sha }} run: | git clone "http://mikkeli:${FAPAT}@${URL_TO_GITEA#http://}/novoyuuparosk-wiki/novoyuuparosk-auto-wiki" auto-wiki git -C auto-wiki checkout "$REF" - name: Install test dependencies run: pip install --no-cache-dir -r auto-wiki/requirements-dev.txt - name: Run tests run: python -m pytest auto-wiki/tests -q