Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrod authored Oct 4, 2024
1 parent 8f8caca commit cbe04d6
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,20 @@ jobs:
- name: Install dependencies
run: |
pdm install -dG test

# - name: Run Tests
#
# run: |
# pdm run pytest

# See: https://remarkablemark.org/blog/2023/10/14/setup-codeclimate-with-github-actions/
- name: Run Tests and report to CodeClimate
- uses: remarkablemark/setup-codeclimate@v2
- run: |
- name: Run Tests
if: matrix.python-version != '3.12' || matrix.os != 'ubuntu-latest'
run: |
pdm run pytest
- if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
# See: https://remarkablemark.org/blog/2023/10/14/setup-codeclimate-with-github-actions/
- uses: remarkablemark/setup-codeclimate@v2
- name: Run Tests and report to CodeClimate
run: |
cc-test-reporter before-build
pdm run pytest
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
cc-test-reporter after-build --exit-code $?
env:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

# See: https://martinheinz.dev/blog/69 "Ultimate CI Pipeline for All of Your Python Projects"
Expand Down

0 comments on commit cbe04d6

Please sign in to comment.