name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install system dependencies run: sudo apt-get update -q && sudo apt-get install -y libsqlcipher-dev - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.11" cache: pip - name: Configure git credentials for Forgejo env: FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }} run: | git config --global url."https://oauth2:${FORGEJO_TOKEN}@git.opensourcesolarpunk.com/".insteadOf "https://git.opensourcesolarpunk.com/" - name: Install dependencies run: pip install -r requirements.txt - name: Run tests run: pytest tests/ -v --tb=short