Skip to content

Commit

Permalink
Merge pull request #25 from mhogan-nwra/develop
Browse files Browse the repository at this point in the history
Platform Specific Lock Files
  • Loading branch information
pbrod authored Oct 14, 2024
2 parents c9e998a + 12c6576 commit e760810
Show file tree
Hide file tree
Showing 5 changed files with 3,344 additions and 403 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ jobs:
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies on Linux
run: |
pdm install -dG test
- name: Run Tests
pdm install -dG test -L pdm_linux.lock
- if: matrix.os == 'windows-latest'
name: Install dependencies on Windows
run: |
pdm install -dG test -L pdm_windows.lock
- if: matrix.os == 'macOS-latest'
name: Install dependencies on macOS
run: |
pdm install -dG test -L pdm_macos.lock
- name: Run Tests
run: |
pdm run pytest
coverage:
Expand All @@ -48,9 +57,18 @@ jobs:
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies on Linux
run: |
pdm install -dG test -L pdm_linux.lock
- if: matrix.os == 'windows-latest'
name: Install dependencies on Windows
run: |
pdm install -dG test -L pdm_windows.lock
- if: matrix.os == 'macOS-latest'
name: Install dependencies on macOS
run: |
pdm install -dG test
pdm install -dG test -L pdm_macos.lock
# 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
Expand Down
Loading

0 comments on commit e760810

Please sign in to comment.