-
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.
Add ability to skip overwriting / autogenerating specific files
- Loading branch information
Showing
2 changed files
with
45 additions
and
11 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 |
---|---|---|
|
@@ -131,19 +131,19 @@ def combine_coverage(cls, *args, **kwargs): | |
@classmethod | ||
def upload_artifact(cls, *args, **kwargs): | ||
return cls.action({ | ||
# 'uses': 'actions/[email protected]' | ||
'uses': 'actions/[email protected]' | ||
# Rollback to 3.x due to | ||
# https://github.com/actions/upload-artifact/issues/478 | ||
# todo: migrate | ||
# https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact | ||
'uses': 'actions/[email protected]' | ||
# 'uses': 'actions/[email protected]' | ||
}, *args, **kwargs) | ||
|
||
@classmethod | ||
def download_artifact(cls, *args, **kwargs): | ||
return cls.action({ | ||
# 'uses': 'actions/[email protected]', | ||
'uses': 'actions/[email protected]', | ||
'uses': 'actions/[email protected]', | ||
# 'uses': 'actions/[email protected]', | ||
}, *args, **kwargs) | ||
|
||
@classmethod | ||
|
@@ -244,7 +244,8 @@ def cibuildwheel(cls, *args, sensible=False, **kwargs): | |
return cls.action({ | ||
'name': 'Build binary wheels', | ||
# 'uses': 'pypa/[email protected]', | ||
'uses': 'pypa/[email protected]', | ||
# 'uses': 'pypa/[email protected]', | ||
'uses': 'pypa/[email protected]', | ||
}, *args, **kwargs) | ||
|
||
|
||
|
@@ -680,7 +681,7 @@ def build_binpy_wheels_job(self): | |
Actions.upload_artifact({ | ||
'name': 'Upload wheels artifact', | ||
'with': { | ||
'name': 'wheels', | ||
'name': 'wheels-${{ matrix.os }}-${{ matrix.arch }}', | ||
'path': f"./wheelhouse/{self.mod_name}*.whl" | ||
} | ||
}) | ||
|
@@ -790,7 +791,8 @@ def build_purewheel_job(self): | |
Actions.upload_artifact({ | ||
'name': 'Upload wheels artifact', | ||
'with': { | ||
'name': 'wheels', | ||
# 'name': 'wheels', | ||
'name': 'wheels-${{ matrix.os }}-${{ matrix.arch }}', | ||
'path': build_parts['artifact'], | ||
} | ||
}) | ||
|
@@ -961,7 +963,14 @@ def test_wheels_job(self, needs=None): | |
action_steps += [ | ||
Actions.setup_qemu(sensible=True), | ||
Actions.setup_python({'with': {'python-version': '${{ matrix.python-version }}'}}), | ||
Actions.download_artifact({'name': 'Download wheels', 'with': {'name': 'wheels', 'path': 'wheelhouse'}}), | ||
Actions.download_artifact({ | ||
'name': 'Download wheels', | ||
'with': { | ||
# 'name': 'wheels', | ||
'pattern': 'wheels-*', | ||
'merge-multiple': True, | ||
'path': 'wheelhouse' | ||
}}), | ||
] | ||
|
||
workspace_dname = 'testdir_${CI_PYTHON_VERSION}_${GITHUB_RUN_ID}_${RUNNER_OS}' | ||
|
@@ -1163,7 +1172,12 @@ def build_deploy(self, mode='live', needs=None): | |
|
||
if 'nosrcdist' not in self.tags: | ||
sdist_wheel_steps = [ | ||
Actions.download_artifact({'name': 'Download sdist', 'with': {'name': 'sdist_wheels', 'path': wheelhouse_dpath}}) | ||
Actions.download_artifact({ | ||
'name': 'Download sdist', | ||
'with': { | ||
'name': 'sdist_wheels', | ||
'path': wheelhouse_dpath | ||
}}) | ||
] | ||
else: | ||
sdist_wheel_steps = [] | ||
|
@@ -1175,7 +1189,14 @@ def build_deploy(self, mode='live', needs=None): | |
'needs': list(needs), | ||
'steps': [ | ||
Actions.checkout(name='Checkout source'), | ||
Actions.download_artifact({'name': 'Download wheels', 'with': {'name': 'wheels', 'path': wheelhouse_dpath}}), | ||
Actions.download_artifact({ | ||
'name': 'Download wheels', | ||
'with': { | ||
# 'name': 'wheels', | ||
'pattern': 'wheels-*', | ||
'merge-multiple': True, | ||
'path': wheelhouse_dpath | ||
}}), | ||
] + sdist_wheel_steps + [ | ||
{'name': 'Show files to upload', 'shell': 'bash', 'run': f'ls -la {wheelhouse_dpath}'}, | ||
# TODO: it might make sense to make this a script that is invoked | ||
|
@@ -1287,7 +1308,10 @@ def build_github_release(self, needs=None): | |
'needs': list(needs), | ||
'steps': [ | ||
Actions.checkout(name='Checkout source'), | ||
Actions.download_artifact({'name': 'Download artifacts', 'with': {'name': 'deploy_artifacts', 'path': 'wheelhouse'}}), | ||
Actions.download_artifact({'name': 'Download artifacts', 'with': { | ||
'name': 'deploy_artifacts', | ||
'path': 'wheelhouse' | ||
}}), | ||
{'name': 'Show files to release', 'shell': 'bash', 'run': 'ls -la wheelhouse'}, | ||
write_release_notes_action, | ||
tag_action, | ||
|
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