-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Feature/ci cd setup #868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MrKoh7
wants to merge
37
commits into
audreyfeldroy:main
Choose a base branch
from
beier17:feature/ci-cd-setup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/ci cd setup #868
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
4fd652a
Add CI workflow
MrKoh7 a331a41
Fix CI: add cookiecutter and test dependencies
MrKoh7 2017c93
CI: install 'just' and test deps; run pytest
MrKoh7 428585c
CI: matrix tests, caching, just install, reports+artifacts, lint/mypy…
MrKoh7 0586811
Add GitLab CI: lint, test matrix with coverage/JUnit, and build artif…
MrKoh7 a0c0ad2
Fix GitLab CI: corrected variables placement and structure
MrKoh7 dd24a98
Update GitLab CI: add just installation, coverage reports, and TestPy…
MrKoh7 23f0fbc
Rewrite GitLab CI: lint, test with just fix, simulate build & deploy
MrKoh7 d5ea212
Updated .yml
MrKoh7 a58a12c
Corrected yml
MrKoh7 58e8258
Fixed .yml
MrKoh7 d33c8ab
Corrected yml
MrKoh7 8c46a39
Correct configuration
MrKoh7 125dcdc
Correct configuration
MrKoh7 150efac
Correct configuration
MrKoh7 a42dc4e
Correct configuration
MrKoh7 4019dc5
Correct configuration
MrKoh7 1742f4f
Correct configuration
MrKoh7 87c479e
Correct configuration
MrKoh7 e25106e
Correct configuration
MrKoh7 bcc3cc7
Correct configuration
MrKoh7 32d8ad0
Correct configuration
MrKoh7 93f4787
Correct configuration
MrKoh7 379b140
Correct configuration
MrKoh7 23136bd
Correct configuration
MrKoh7 5189ef0
CI config (build, test, package, deploy)
MrKoh7 4eea948
CI config (build, test, package, deploy)
MrKoh7 c98a6ce
CI config (build, test, package, deploy)
MrKoh7 2d0e610
CI CONFIG
MrKoh7 5b96237
Fix pyproject.toml: clean dependencies and exclude hooks/reports from…
MrKoh7 2698dd3
CI config (build, test, package, deploy)
MrKoh7 0c002e2
CI config (build, test, package, deploy)
MrKoh7 dae8e20
CI config (build, test, package, deploy)
MrKoh7 c308d11
Fix test job: generate JUnit and coverage reports
MrKoh7 366cc25
Fix test job
MrKoh7 4e91997
Fix test job: generate JUnit and coverage reports
MrKoh7 29a94ec
Minor: rename test functions names for clarity
MrKoh7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,58 @@ | ||
| stages: [build, test, package, deploy] | ||
|
|
||
| build: | ||
| stage: build | ||
| image: python:3.11 | ||
| script: | ||
| - echo "Build stage running" | ||
| - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
| artifacts: | ||
| paths: | ||
| - .venv/ | ||
|
|
||
| test: | ||
| stage: test | ||
| image: python:3.11 | ||
| script: | ||
| - pip install pytest pytest-cov cookiecutter pytest-cookies | ||
| - mkdir -p reports/html | ||
| - pytest tests \ | ||
| --disable-warnings -q \ | ||
| --junitxml=reports/junit.xml \ | ||
| --cov=. \ | ||
| --cov-report=xml:reports/coverage.xml \ | ||
| --cov-report=html:reports/html \ | ||
| --cov-report=term-missing || true | ||
| artifacts: | ||
| when: always | ||
| expire_in: 1 week | ||
| reports: | ||
| junit: "reports/junit.xml" | ||
| coverage_report: | ||
| coverage_format: cobertura | ||
| path: "reports/coverage.xml" | ||
| paths: | ||
| - reports/ | ||
|
|
||
| package: | ||
| stage: package | ||
| image: python:3.11 | ||
| script: | ||
| - pip install build twine | ||
| - python -m build | ||
| - twine check dist/* | ||
| artifacts: | ||
| paths: | ||
| - dist/ | ||
|
|
||
| deploy: | ||
| stage: deploy | ||
| image: python:3.11 | ||
| needs: ["package"] | ||
| script: | ||
| - pip install twine | ||
| - twine check dist/* | ||
| - echo "Deploy stage finished successfully" | ||
| artifacts: | ||
| paths: | ||
| - dist/ |
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| def test_smoke(): | ||
| assert True |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exclude pattern should use double braces for cookiecutter template variables. The correct syntax should be
{{cookiecutter.pypi_package_name}}with a dot separator, not an underscore.