Skip to content

Commit

Permalink
ci: fix codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Jul 14, 2024
1 parent 75bd7af commit dd2f931
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,29 @@ on:

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@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Start PostgreSQL
run: make start-db
- name: Run tests and collect coverage
run: poetry run pytest tests --cov=pgmq_sqlalchemy.queue --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Start PostgreSQL
run: make start-db
- name: Run tests and collect coverage
run: poetry run pytest tests --cov=pgmq_sqlalchemy.queue --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit dd2f931

Please sign in to comment.