-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update github artifacts Drop 3.6 and 3.7 support Rotate secrets Remove explicit osx13 Fixup setup.py
- Loading branch information
Showing
11 changed files
with
131 additions
and
134 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- name: Checkout source | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.12 for linting | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.1 | ||
with: | ||
python-version: '3.12' | ||
- name: Install dependencies | ||
|
@@ -51,7 +51,7 @@ jobs: | |
- name: Checkout source | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.1 | ||
with: | ||
python-version: '3.12' | ||
- name: Upgrade pip | ||
|
@@ -62,9 +62,9 @@ jobs: | |
- name: Build sdist | ||
shell: bash | ||
run: |- | ||
python -m pip install pip -U | ||
python -m pip install setuptools>=0.8 wheel build | ||
python -m pip install setuptools>=0.8 wheel build twine | ||
python -m build --sdist --outdir wheelhouse | ||
python -m twine check ./wheelhouse/line_profiler*.tar.gz | ||
- name: Install sdist | ||
run: |- | ||
ls -al wheelhouse | ||
|
@@ -98,11 +98,11 @@ jobs: | |
echo "MOD_DPATH = $MOD_DPATH" | ||
python -m pytest --verbose --cov=line_profiler $MOD_DPATH ../tests | ||
cd .. | ||
- uses: actions/upload-artifact@v3.1.3 | ||
- uses: actions/upload-artifact@v4.3.1 | ||
name: Upload sdist artifact | ||
with: | ||
name: sdist_wheels | ||
path: wheelhouse/*.tar.gz | ||
path: ./wheelhouse/line_profiler*.tar.gz | ||
build_binpy_wheels: | ||
## | ||
# Build the binary wheels. Note: even though cibuildwheel will test | ||
|
@@ -123,7 +123,6 @@ jobs: | |
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
- macos-13 | ||
cibw_skip: | ||
- '*-win32' | ||
arch: | ||
|
@@ -135,12 +134,12 @@ jobs: | |
uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.os == 'windows-latest' && ${{ contains(matrix.cibw_skip, '*-win32') }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
if: runner.os == 'Linux' && matrix.arch != 'auto' | ||
with: | ||
platforms: all | ||
- name: Build binary wheels | ||
uses: pypa/cibuildwheel@v2.17.0 | ||
uses: pypa/cibuildwheel@v2.21.0 | ||
with: | ||
output-dir: wheelhouse | ||
config-file: pyproject.toml | ||
|
@@ -151,7 +150,7 @@ jobs: | |
shell: bash | ||
run: ls -la wheelhouse | ||
- name: Set up Python 3.12 to combine coverage | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.1 | ||
if: runner.os == 'Linux' | ||
with: | ||
python-version: '3.12' | ||
|
@@ -172,13 +171,21 @@ jobs: | |
pwd | ||
- uses: codecov/[email protected] | ||
name: Codecov Upload | ||
env: | ||
HAVE_CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN != '' }} | ||
if: ${{ env.HAVE_PERSONAL_TOKEN == 'true' }} | ||
with: | ||
file: ./coverage.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- uses: actions/[email protected] | ||
- uses: codecov/[email protected] | ||
name: Codecov Upload | ||
with: | ||
file: ./coverage.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- uses: actions/[email protected] | ||
name: Upload wheels artifact | ||
with: | ||
name: wheels | ||
name: wheels-${{ matrix.os }}-${{ matrix.arch }} | ||
path: ./wheelhouse/line_profiler*.whl | ||
test_binpy_wheels: | ||
## | ||
|
@@ -197,15 +204,15 @@ jobs: | |
# Xcookie generates an explicit list of environments that will be used | ||
# for testing instead of using the more concise matrix notation. | ||
include: | ||
- python-version: '3.6' | ||
- python-version: '3.8' | ||
install-extras: tests-strict,runtime-strict | ||
os: ubuntu-20.04 | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
- python-version: '3.8' | ||
install-extras: tests-strict,runtime-strict | ||
os: macos-13 | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
- python-version: '3.8' | ||
install-extras: tests-strict,runtime-strict | ||
os: windows-latest | ||
arch: auto | ||
|
@@ -229,14 +236,6 @@ jobs: | |
install-extras: tests | ||
os: windows-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
os: ubuntu-20.04 | ||
arch: auto | ||
- python-version: '3.7' | ||
install-extras: tests,optional | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.8' | ||
install-extras: tests,optional | ||
os: ubuntu-latest | ||
|
@@ -257,14 +256,6 @@ jobs: | |
install-extras: tests,optional | ||
os: ubuntu-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
os: macos-13 | ||
arch: auto | ||
- python-version: '3.7' | ||
install-extras: tests,optional | ||
os: macos-13 | ||
arch: auto | ||
- python-version: '3.8' | ||
install-extras: tests,optional | ||
os: macOS-latest | ||
|
@@ -285,14 +276,6 @@ jobs: | |
install-extras: tests,optional | ||
os: macOS-latest | ||
arch: auto | ||
- python-version: '3.6' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: '3.7' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
arch: auto | ||
- python-version: '3.8' | ||
install-extras: tests,optional | ||
os: windows-latest | ||
|
@@ -320,18 +303,19 @@ jobs: | |
uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.os == 'windows-latest' | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
if: runner.os == 'Linux' && matrix.arch != 'auto' | ||
with: | ||
platforms: all | ||
- name: Setup Python | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download wheels | ||
with: | ||
name: wheels | ||
pattern: wheels-* | ||
merge-multiple: true | ||
path: wheelhouse | ||
- name: Install wheel ${{ matrix.install-extras }} | ||
shell: bash | ||
|
@@ -343,11 +327,23 @@ jobs: | |
echo "Installing helpers" | ||
pip install setuptools>=0.8 setuptools_scm wheel build -U | ||
pip install tomli pkginfo | ||
export WHEEL_FPATH=$(python -c "import pathlib; print(str(sorted(pathlib.Path('wheelhouse').glob('line_profiler*.whl'))[-1]).replace(chr(92), chr(47)))") | ||
export MOD_VERSION=$(python -c "from pkginfo import Wheel; print(Wheel('$WHEEL_FPATH').version)") | ||
echo "$WHEEL_FPATH=WHEEL_FPATH" | ||
echo "$INSTALL_EXTRAS=INSTALL_EXTRAS" | ||
echo "$MOD_VERSION=MOD_VERSION" | ||
export WHEEL_FPATH=$(python -c "if 1: | ||
import pathlib | ||
dist_dpath = pathlib.Path('wheelhouse') | ||
candidates = list(dist_dpath.glob('line_profiler*.whl')) | ||
candidates += list(dist_dpath.glob('line_profiler*.tar.gz')) | ||
fpath = sorted(candidates)[-1] | ||
print(str(fpath).replace(chr(92), chr(47))) | ||
") | ||
export MOD_VERSION=$(python -c "if 1: | ||
from pkginfo import Wheel, SDist | ||
fpath = '$WHEEL_FPATH' | ||
cls = Wheel if fpath.endswith('.whl') else SDist | ||
print(cls(fpath).version) | ||
") | ||
echo "WHEEL_FPATH=$WHEEL_FPATH" | ||
echo "INSTALL_EXTRAS=$INSTALL_EXTRAS" | ||
echo "MOD_VERSION=$MOD_VERSION" | ||
pip install --prefer-binary "line_profiler[$INSTALL_EXTRAS]==$MOD_VERSION" -f wheelhouse | ||
echo "Install finished." | ||
- name: Test wheel ${{ matrix.install-extras }} | ||
|
@@ -402,7 +398,7 @@ jobs: | |
file: ./coverage.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
test_deploy: | ||
name: Uploading Test to PyPi | ||
name: Deploy Test | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && ! startsWith(github.event.ref, 'refs/tags') && ! startsWith(github.event.ref, 'refs/heads/release') | ||
needs: | ||
|
@@ -411,12 +407,13 @@ jobs: | |
steps: | ||
- name: Checkout source | ||
uses: actions/[email protected] | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download wheels | ||
with: | ||
name: wheels | ||
pattern: wheels-* | ||
merge-multiple: true | ||
path: wheelhouse | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download sdist | ||
with: | ||
name: sdist_wheels | ||
|
@@ -465,7 +462,7 @@ jobs: | |
ots stamp wheelhouse/*.whl wheelhouse/*.tar.gz wheelhouse/*.asc | ||
ls -la wheelhouse | ||
twine upload --username __token__ --password "$TWINE_PASSWORD" --repository-url "$TWINE_REPOSITORY_URL" wheelhouse/*.whl wheelhouse/*.tar.gz --skip-existing --verbose || { echo "failed to twine upload" ; exit 1; } | ||
- uses: actions/upload-artifact@v3.1.3 | ||
- uses: actions/upload-artifact@v4.3.1 | ||
name: Upload deploy artifacts | ||
with: | ||
name: deploy_artifacts | ||
|
@@ -476,7 +473,7 @@ jobs: | |
wheelhouse/*.asc | ||
wheelhouse/*.ots | ||
live_deploy: | ||
name: Uploading Live to PyPi | ||
name: Deploy Live | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags') || startsWith(github.event.ref, 'refs/heads/release')) | ||
needs: | ||
|
@@ -485,12 +482,13 @@ jobs: | |
steps: | ||
- name: Checkout source | ||
uses: actions/[email protected] | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download wheels | ||
with: | ||
name: wheels | ||
pattern: wheels-* | ||
merge-multiple: true | ||
path: wheelhouse | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download sdist | ||
with: | ||
name: sdist_wheels | ||
|
@@ -539,7 +537,7 @@ jobs: | |
ots stamp wheelhouse/*.whl wheelhouse/*.tar.gz wheelhouse/*.asc | ||
ls -la wheelhouse | ||
twine upload --username __token__ --password "$TWINE_PASSWORD" --repository-url "$TWINE_REPOSITORY_URL" wheelhouse/*.whl wheelhouse/*.tar.gz --skip-existing --verbose || { echo "failed to twine upload" ; exit 1; } | ||
- uses: actions/upload-artifact@v3.1.3 | ||
- uses: actions/upload-artifact@v4.3.1 | ||
name: Upload deploy artifacts | ||
with: | ||
name: deploy_artifacts | ||
|
@@ -560,7 +558,7 @@ jobs: | |
steps: | ||
- name: Checkout source | ||
uses: actions/[email protected] | ||
- uses: actions/download-artifact@v2.1.1 | ||
- uses: actions/download-artifact@v4.1.2 | ||
name: Download artifacts | ||
with: | ||
name: deploy_artifacts | ||
|
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
U2FsdGVkX18xUETRJKGIvhEpgRUZ6gf5aOblGOQRdDGfXitS2dnncOZDrPEk8e+n | ||
sbay6B1vowHVKecjoGUTQeTDkwcXgeDPZPsiTXqwCd9KsCW+kGID5jRwUAumfnY8 | ||
Vn7xl5zu/lK9fJCAeooHYET8x+rPhEhSvX5QR4Mi77lKJL/jMDbePCJG6z4DZLO/ | ||
GiwY7OxJJ0vnbh0r6mfW9GiaLL9nL0W9D7UevF+CyjgOmKG3xwvBodj72Uj9aCB1 | ||
1m8wqe4ZtgS/1OC/rBU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