-
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.
Merge branch 'main' into feature/#248-add-security-linter-results-to-…
…workflow-summary
- Loading branch information
Showing
61 changed files
with
584 additions
and
1,731 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
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
|
||
- name: Build Documentation | ||
run: | | ||
poetry run python -m nox -s build-docs | ||
poetry run python -m nox -s docs:build | ||
Lint: | ||
name: Linting (Python-${{ matrix.python-version }}) | ||
|
@@ -47,7 +47,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
python-version: [ "3.9", "3.10", "3.11" ] | ||
|
||
steps: | ||
- name: SCM Checkout | ||
|
@@ -59,7 +59,7 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run lint | ||
run: poetry run nox -s lint | ||
run: poetry run nox -s lint:code | ||
|
||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
|
@@ -75,7 +75,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
python-version: [ "3.9", "3.10", "3.11" ] | ||
|
||
steps: | ||
- name: SCM Checkout | ||
|
@@ -87,7 +87,7 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run type-check | ||
run: poetry run nox -s type-check | ||
run: poetry run nox -s lint:typing | ||
|
||
Security: | ||
name: Security Checks (Python-${{ matrix.python-version }}) | ||
|
@@ -96,7 +96,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
python-version: [ "3.9", "3.10", "3.11" ] | ||
|
||
steps: | ||
- name: SCM Checkout | ||
|
@@ -108,7 +108,7 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run security linter | ||
run: poetry run nox -s security | ||
run: poetry run nox -s lint:security | ||
|
||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
|
@@ -126,7 +126,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
python-version: [ "3.9", "3.10", "3.11" ] | ||
exasol-version: [ "7.1.9" ] | ||
|
||
steps: | ||
|
@@ -139,7 +139,7 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run Tests and Collect Coverage | ||
run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }} | ||
run: poetry run nox -s test:coverage -- -- --db-version ${{ matrix.exasol-version }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -10,13 +10,15 @@ jobs: | |
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: ./.github/actions/python-environment | ||
|
||
- name: Build Documentation | ||
run: | | ||
poetry run python -m nox -s build-docs | ||
poetry run python -m nox -s docs:multiversion | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
|
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
cp security-python3.9/.security.json ../ | ||
- name: Generate Report | ||
run: poetry run nox -s report -- -- --format json | tee metrics.json | ||
run: poetry run nox -s project:report -- -- --format json | tee metrics.json | ||
|
||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
|
@@ -46,7 +46,7 @@ jobs: | |
- name: Generate GitHub Summary | ||
run: | | ||
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY | ||
poetry run nox -s report -- -- --format markdown >> $GITHUB_STEP_SUMMARY | ||
poetry run nox -s project:report -- -- --format markdown >> $GITHUB_STEP_SUMMARY | ||
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY | ||
poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY | ||
echo -e "\n\n# Static Code Analysis\n" >> $GITHUB_STEP_SUMMARY | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 0.16.0 - 2024-11-15 | ||
|
||
## 🚨 Breaking Changes | ||
|
||
* Dropped python 3.8 support | ||
* Changed names of all nox tasks | ||
|
||
| Old Name | New Name | Description | | ||
|--------------------|------------------------|----------------------------------------------------------------| | ||
| fix | project:fix | Runs all automated fixes on the code base | | ||
| check | project:check | Runs all available checks on the project | | ||
| report | project:report | Collects and generates metrics summary for the workspace | | ||
| unit-tests | test:unit | Runs all unit tests | | ||
| integration-tests | test:integration | Runs all the integration tests | | ||
| coverage | test:coverage | Runs all tests (unit + integration) and reports the code coverage | | ||
| lint | lint:code | Runs the static code analyzer on the project | | ||
| type-check | lint:typing | Runs the type checker on the project | | ||
| security | lint:security | Runs the security linter on the project | | ||
| build-build | docs:build | Builds the project documentation | | ||
| open-open | docs:open | Opens the built project documentation | | ||
| clean-docs | docs:clean | Removes the documentations build folder | | ||
| prepare-release | release:prepare | Prepares the project for a new release | | ||
|
||
## ✨ Added | ||
|
||
* Added support for multi version Documentation | ||
* Added nox tasks for building multi-version documentation | ||
|
||
## 🐞 Fixed | ||
|
||
* Fixed CD workflow template | ||
* Fixed the selection of the latest version in Multi-Version Documentation | ||
|
||
## 📚 Documentation | ||
|
||
* Added Documentation on Metrics | ||
* Added additional details regarding adjusted sphinx-multiversion | ||
* Restructured documentation | ||
|
||
## 🔩 Internal | ||
|
||
* Relocked dependencies |
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,14 +1 @@ | ||
# Unreleased | ||
|
||
## 🐞 Fixed | ||
|
||
* Fixed CD workflow template | ||
|
||
## 📚 Documentation | ||
|
||
* Add Documentation on Metrics | ||
|
||
## 🔩 Internal | ||
|
||
* Relock dependencies | ||
|
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
../design | ||
development | ||
plugins | ||
ideas | ||
modules/modules |
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 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ Modules | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
sphinx/sphinx | ||
nox | ||
pre_commit_hooks | ||
sphinx/sphinx | ||
|
File renamed without changes.
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,24 @@ | ||
sphinx | ||
======= | ||
|
||
sphinx-multiversion | ||
+++++++++++++++++++ | ||
|
||
The `sphinx-multiversion` extension is a modified copy of `Holzhaus/sphinx-multiversion <https://github.com/Holzhaus/sphinx-multiversion>`_. This copy was taken from version :code:`0.24.0`. | ||
|
||
It has been adjusted with minor code changes and modified defaults to work seamlessly with Exasol integration projects, which often require a specific project structure and layout. Additionally, it is designed to be used with an HTML theme that supports displaying and selecting multiple versions if the `versions` variable is set in the HTML context of sphinx. As of this writing, the theme used in conjunction with this modified version of `sphinx-multiversion` is `SHIBUYA <https://github.com/lepture/shibuya>`_, version :code:`2024.10.15`. | ||
|
||
.. attention:: | ||
|
||
**Attribution** | ||
|
||
A big thanks to the original author and project `Jan Holthuis <https://github.com/Holzhaus>`_, as well as `Samuel Dowling <https://github.com/samuel-emrys>`_, as we took various patches for the plugin from his fork. | ||
|
||
Note: Both projects are published under the `BSD-2 license <https://opensource.org/license/bsd-2-clause>`_. | ||
|
||
* https://github.com/sphinx-contrib/multiversion | ||
* https://github.com/samuel-emrys/sphinx-multiversion | ||
|
||
.. note:: | ||
|
||
In the long term, it would be advantageous to remove unnecessary features and code that are not required for Exasol's projects. Adding further tests would also be beneficial. However, the primary goal was to create a low-effort, stable multi-version support solution for our projects. |
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
14 changes: 0 additions & 14 deletions
14
doc/user_guide/modules/sphinx/multiversion/_templates/versioning.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.