chore: replace pre-commit with prek in Makefile and remove debug prin… #65
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
| # This workflow will run tests using pytest and upload the coverage report to Codecov | |
| # Run test with various Python versions | |
| name: Integration Tests | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9","3.10","3.11","3.12"] | |
| name: Test pgmq-sqlalchemy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Install uv | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: Start PostgreSQL | |
| run: | | |
| cp pgmq_postgres.template.env pgmq_postgres.env | |
| cp pgmq_tests.template.env pgmq_tests.env | |
| make start-db | |
| - name: Run tests and collect coverage | |
| run: uv run pytest tests --cov=pgmq_sqlalchemy.queue --cov-report=xml -n auto tests | |
| continue-on-error: true | |
| - name: Upload coverage reports to Codecov with GitHub Action | |
| uses: codecov/[email protected] | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |