-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from kjappelbaum/test_example
chore: test example
- Loading branch information
Showing
4 changed files
with
50 additions
and
41 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 |
---|---|---|
|
@@ -9,13 +9,13 @@ on: | |
# Avoid using all the resources/limits available by checking only | ||
# relevant branches and tags. Other branches can be checked via PRs. | ||
branches: [main] | ||
tags: ['v*'] # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: # Run in every PR | ||
workflow_dispatch: # Allow manually triggering the workflow | ||
tags: ["v*"] # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: # Run in every PR | ||
workflow_dispatch: # Allow manually triggering the workflow | ||
schedule: | ||
# Run roughly every 15 days at 00:00 UTC | ||
# (useful to check if updates on dependencies break the package) | ||
- cron: '0 0 1,16 * *' | ||
- cron: "0 0 1,16 * *" | ||
|
||
concurrency: | ||
group: >- | ||
|
@@ -30,9 +30,9 @@ jobs: | |
wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: {fetch-depth: 0} # deep clone for setuptools-scm | ||
with: { fetch-depth: 0 } # deep clone for setuptools-scm | ||
- uses: actions/setup-python@v2 | ||
with: {python-version: "3.10"} | ||
with: { python-version: "3.10" } | ||
- name: Lint code | ||
run: pipx run pre-commit run --all-files --show-diff-on-failure | ||
- name: Build package distribution files | ||
|
@@ -54,12 +54,12 @@ jobs: | |
strategy: | ||
matrix: | ||
python: | ||
- 3.7 # oldest Python supported by PSF | ||
- "3.10" # newest Python that is stable | ||
- 3.7 # oldest Python supported by PSF | ||
- "3.10" # newest Python that is stable | ||
platform: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -68,7 +68,7 @@ jobs: | |
python-version: ${{ matrix.python }} | ||
- name: Retrieve pre-built distribution files | ||
uses: actions/download-artifact@v2 | ||
with: {name: python-distribution-files, path: dist/} | ||
with: { name: python-distribution-files, path: dist/ } | ||
- name: Run tests | ||
run: >- | ||
pipx run tox | ||
|
@@ -101,27 +101,27 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: {python-version: "3.10"} | ||
with: { python-version: "3.10" } | ||
- name: Retrieve pre-built distribution files | ||
uses: actions/download-artifact@v2 | ||
with: {name: python-distribution-files, path: dist/} | ||
# - name: Build Changelog | ||
# id: github_release | ||
# uses: mikepenz/release-changelog-builder-action@v3 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Create Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# name: ${{ github.ref }} | ||
# body: ${{steps.github_release.outputs.changelog}} | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: "✏️ Generate release changelog" # updates CHANGELOG.md | ||
# uses: heinrichreimer/[email protected] | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
with: { name: python-distribution-files, path: dist/ } | ||
# - name: Build Changelog | ||
# id: github_release | ||
# uses: mikepenz/release-changelog-builder-action@v3 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Create Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# name: ${{ github.ref }} | ||
# body: ${{steps.github_release.outputs.changelog}} | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: "✏️ Generate release changelog" # updates CHANGELOG.md | ||
# uses: heinrichreimer/[email protected] | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish Package | ||
env: | ||
# - https://pypi.org/help/#apitoken | ||
|
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
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
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