Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
with:
python-version: '3.12'
- name: Install poetry
run: pip3 install poetry
run: |
pip3 install poetry
poetry self add poetry-plugin-export
- name: Active Python version
run: |
echo "Active Python version is..."
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,36 @@ jobs:
- name: Install dependencies
run: poetry install --without workflow --no-root
- name: Execute Tests and create test coverage report
run: poetry run pytest tests --cov=testguide_report_generator --cov-report=xml:coverage.xml
run: poetry run pytest tests --cov=testguide_report_generator --cov-report=xml:coverage-${{ matrix.py_version }}.xml
- name: Execute Test
run: poetry run pytest tests
- name: Upload test coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-coverage-report
path: coverage.xml
name: test-coverage-report-${{ matrix.py_version }}
path: coverage-${{ matrix.py_version }}.xml

publish-coverage:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
needs: test
env:
ARTIFACT_FOLDER: test-coverage-report
steps:
- name: Download test coverage report
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-coverage-report
path: ${{ env.ARTIFACT_FOLDER }}
pattern: ${{ env.ARTIFACT_FOLDER }}-*
merge-multiple: true
- name: Find latest coverage report
run: |
latest_file=$(ls ${{ env.ARTIFACT_FOLDER }}/ | sort -V | tail -n 1)
echo "LATEST_COVERAGE_FILE=$latest_file" >> $GITHUB_ENV
echo "Latest coverage file version: $latest_file"
- name: Get Cover
uses: orgoro/coverage@v3
with:
coverageFile: coverage.xml
coverageFile: ${{ env.ARTIFACT_FOLDER }}/${{ env.LATEST_COVERAGE_FILE }}
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.99
4 changes: 2 additions & 2 deletions config/license/allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"allowedLicenses": [
{
"moduleLicense": "MIT",
"moduleVersion": "24.2.0",
"moduleVersion": "25.3.0",
"moduleName": "attrs",
"licenseUrl": "https://github.com/python-attrs/attrs/blob/24.2.0/LICENSE",
"licenseUrl": "https://github.com/python-attrs/attrs/blob/25.3.0/LICENSE",
"moduleCopyright": "Copyright (c) 2015 Hynek Schlawack and the attrs contributors",
"actualLicense": "MIT",
"violationAllowance": ""
Expand Down
11 changes: 8 additions & 3 deletions testguide_report_generator/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"string",
"null"
],
"maxLength": 6144
"maxLength": 6144,
"$comment": "Simple HTML tags can be used for formatting the description; invalid HTML tags and tags that are not allowed (e.g. <script>) are automatically removed."
},
"ShortNameString": {
"type": "string",
Expand Down Expand Up @@ -483,7 +484,11 @@
"IMAGE"
]
}
}
},
"required": [
"path",
"artifactType"
]
}
}
}
}