-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
139 additions
and
45 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 |
---|---|---|
|
@@ -6,8 +6,41 @@ on: | |
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
ci: | ||
name: "Run tests" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
] | ||
poetry-version: ["1.6.1"] | ||
os: [ | ||
ubuntu-latest, | ||
macos-latest, | ||
# windows-latest, # Disabling Windows to get build working | ||
] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Install dependencies | ||
run: poetry install --all-extras | ||
- name: Run tests | ||
run: poetry run pytest | ||
|
||
tagged-release: # TODO: Maybe make this conditional so it can run on pull requests | ||
name: "Tagged Release" | ||
needs: ci | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
|
@@ -24,6 +57,13 @@ jobs: | |
run: | | ||
poetry self add "poetry-dynamic-versioning[plugin]" | ||
poetry install --all-extras | ||
- name: Test & publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
with: | ||
coverageCommand: poetry run pytest | ||
coverageLocations: ${{github.workspace}}/dist/coverage.info:lcov | ||
- name: Create Github release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
|
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,67 @@ | ||
name: "build" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
ci: | ||
name: "Run tests" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
] | ||
poetry-version: ["1.6.1"] | ||
os: [ | ||
ubuntu-latest, | ||
macos-latest, | ||
# windows-latest, # Disabling Windows to get build working | ||
] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Install dependencies | ||
run: poetry install --all-extras | ||
- name: Run tests | ||
run: poetry run pytest | ||
|
||
code-coverage: # TODO: Maybe make this conditional so it can run on pull requests | ||
name: "Code coverage" | ||
needs: ci | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Run image | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: '1.6.1' | ||
- name: Install dependencies | ||
run: | | ||
poetry self add "poetry-dynamic-versioning[plugin]" | ||
poetry install --without dev --with test --all-extras | ||
- name: Test & publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
with: | ||
coverageCommand: poetry run pytest | ||
coverageLocations: ${{github.workspace}}/dist/coverage.info:lcov |
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
File renamed without changes.
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,2 @@ | ||
[tool] | ||
lib-name="asdf" |
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