diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d6d61bf1..55d64b6a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: ci on: - pull_request: push: branches: - main diff --git a/.github/workflows/ci_pr.yml b/.github/workflows/ci_pr.yml new file mode 100644 index 000000000..4ed84a46f --- /dev/null +++ b/.github/workflows/ci_pr.yml @@ -0,0 +1,29 @@ +name: ci + +on: + pull_request: + +jobs: + test: + runs-on: "${{ matrix.os }}" + strategy: + matrix: + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "3.10" + architecture: 'x64' + - name: install + run: | + pip3 install --upgrade pip + make install + - name: test + run: | + make install-dev + python3 -m pytest --doctest-modules --verbose pgx tests/test_*.py --ignore=pgx/experimental --cov=pgx --cov-report=term-missing --cov-report=html + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}