Skip to content

Commit

Permalink
dev: moving coverage (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
eckelsjd authored Dec 7, 2023
1 parent 25eddbf commit 24b1019
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docs
name: Build documentation
on:
push:
branches:
Expand Down Expand Up @@ -26,4 +26,20 @@ jobs:
mkdocs-material-
# Build and push docs to gh-pages branch (triggers doc site publish action)
- run: pdm sync
- run: pdm run mkdocs gh-deploy --force
- run: pdm run mkdocs gh-deploy --force

coverage-test:
name: Test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
- name: Install dependencies
run: pdm install
- name: Run tests
run: pdm run -v test
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 4 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
name: tests
name: Run PR test matrix
on:
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
Testing:
pr-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ ubuntu-latest, macOS-latest, windows-latest ]

steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pdm install
run: pdm install
- name: Run tests
run: |
pdm run -v test
- name: Coveralls
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run: pdm run -v test

0 comments on commit 24b1019

Please sign in to comment.