-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implements tox in pipline for CI (#47)
- Loading branch information
Showing
12 changed files
with
962 additions
and
729 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Issue / Motivation | ||
|
||
|
||
|
||
### Changes | ||
|
||
This PR implements the following changes: | ||
|
||
1. |
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,34 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"package-name": "register-order-calculations", | ||
"release-type": "python", | ||
"include-v-in-tag": false, | ||
"changelog-sections": [ | ||
{ "type": "build", "section": "🏗️ Build System", "hidden": true }, | ||
{ | ||
"type": "chore", | ||
"section": "🧹 Miscellaneous Chores", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "👷 Continuous Integration", | ||
"hidden": true | ||
}, | ||
{ "type": "docs", "section": "📝 Documentation" }, | ||
{ "type": "feat", "section": "🚀 Features" }, | ||
{ "type": "fix", "section": "🐛 Bug Fixes" }, | ||
{ "type": "perf", "section": "⚡ Performance Improvements" }, | ||
{ | ||
"type": "refactor", | ||
"section": "♻️ Code Refactoring", | ||
"hidden": true | ||
}, | ||
{ "type": "revert", "section": "⏪️ Reverts" }, | ||
{ "type": "style", "section": "💄 Styles", "hidden": true }, | ||
{ "type": "test", "section": "✅ Tests", "hidden": true } | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name != 'pull_request' && github.sha || '' }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Run lint/test on python v${{ matrix.python-version }} | ||
runs-on: [ubuntu-latest] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
python-version: | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -24,12 +35,18 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install poetry | ||
uses: snok/[email protected] | ||
with: | ||
version: 1.6.1 | ||
run: | | ||
python -m pip install poetry==1.8.2 | ||
- name: Configure poetry | ||
run: | | ||
python -m poetry config virtualenvs.in-project true | ||
- name: Install dependencies | ||
run: poetry install | ||
run: python -m poetry install --only=dev --no-root | ||
|
||
- name: Run Tox | ||
run: poetry run tox | ||
|
||
- name: Lint | ||
run: | | ||
|
@@ -38,12 +55,6 @@ jobs: | |
pre-commit run --all-files | ||
pre-commit run commitizen-branch --hook-stage push | ||
- name: Test | ||
run: | | ||
source $(poetry env info --path)/bin/activate | ||
pytest tests -vvv | ||
poetry upgrade --help | ||
- name: Build | ||
run: poetry build | ||
|
||
|
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ htmlcov/ | |
.cache | ||
nosetests.xml | ||
coverage.xml | ||
coverage.lcov | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
|
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
Oops, something went wrong.