-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use diffpy.utils GitHub CI workflows to address codecov 0% problem (#87)
* Move tests folder to top * Revert commit * Add pytest-cov * Use the latest diffpy.utils CI workflow
- Loading branch information
Showing
9 changed files
with
57 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
name: Check News Item | ||
name: Check for News | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Check News item | ||
steps: | ||
|
||
# note: the checkout will pull code from the base branch. This step should not pull code from the merge commit | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
cache-dependency-path: 'pyproject.toml' | ||
- run: pip install PyGithub | ||
- run: python .github/workflows/check-news.py | ||
env: | ||
PR_NUMBER: "${{ github.event.number }}" | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
GITHUB_REPOSITORY: "${{ env.GITHUB_REPOSITORY }}" | ||
check-news-item: | ||
uses: Billingegroup/release-scripts/.github/workflows/_check-news-item.yml@v0 | ||
with: | ||
project: diffpy.snmf |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- prereleased | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
CI: | ||
uses: Billingegroup/release-scripts/.github/workflows/_matrix-and-codecov-on-merge-to-main.yml@v0 | ||
with: | ||
project: diffpy.snmf | ||
c_extension: false | ||
headless: false | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build and Deploy Docs | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-docs-on-release: | ||
uses: Billingegroup/release-scripts/.github/workflows/_publish-docs-on-release.yml@v0 | ||
with: | ||
project: diffpy.snmf | ||
c_extension: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Tests on PR | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests-on-pr: | ||
uses: Billingegroup/release-scripts/.github/workflows/_tests-on-pr.yml@v0 | ||
with: | ||
project: diffpy.snmf | ||
c_extension: false | ||
headless: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pytest | |
codecov | ||
coverage | ||
pytest-env | ||
pytest-cov |