This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
forked from pypa/wheel
-
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.
Revert "Apply new ruff/pyupgrade rule UP032 (pypa#617)"
This reverts commit 16206e6.
- Loading branch information
1 parent
16206e6
commit 351983d
Showing
6 changed files
with
87 additions
and
126 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: H6060 Experiment 1 | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-application: | ||
name: Build Application | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout GitHub Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Python 3.12 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: 3.12 | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install Pip Dependencies | ||
uses: seansmith39/H6060-Experiment-Resources/.github/actions/python/install-pip-dependencies@main | ||
with: | ||
extra-pip-packages: flit build coverage | ||
|
||
- name: Install Project | ||
run: pip install --no-binary=wheel . | ||
|
||
- name: Install Test Dependencies | ||
run: pip install .[test] coverage[toml] | ||
|
||
- name: Build And Upload Python Package | ||
uses: seansmith39/H6060-Experiment-Resources/.github/actions/python/python-build-upload@main | ||
with: | ||
build-command: flit build --setup-py | ||
build-directory: dist | ||
|
||
- name: Run Tests With Coverage | ||
shell: bash | ||
run: | | ||
coverage run -m pytest -v | ||
coverage xml | ||
- name: Upload Coverage XML Report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-report | ||
path: coverage.xml | ||
if-no-files-found: error | ||
|
||
python-scanning: | ||
name: Run SCA and SAST Python Scanning Workflow | ||
uses: seansmith39/H6060-Experiment-Resources/.github/workflows/experiment-1-python.yml@main | ||
needs: build-application | ||
secrets: inherit | ||
with: | ||
project-name: H6060-Python-wheel | ||
coverage-filename: coverage.xml | ||
sast-sonarqube-enabled: false | ||
sast-deepsource-enabled: false | ||
sast-codeql-enabled: false | ||
sca-eclipse-steady-enabled: false | ||
sca-snyk-enabled: false | ||
sca-owasp-dependency-check-enabled: false | ||
sca-grype-enabled: false |
This file was deleted.
Oops, something went wrong.
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