-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute model updates from params for clipping
Fix the static method error --------- Co-authored-by: Daniel J. Beutel <[email protected]> Co-authored-by: Robert Steiner <[email protected]> Update types-requests requirement from ==2.31.0.2 to ==2.31.0.10 (#2739) Updates the requirements on [types-requests](https://github.com/python/typeshed) to permit the latest version. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taner Topal <[email protected]> Make the optional arg "--callable" in `flower-client` a required positional arg. (#2673) Co-authored-by: Javier <[email protected]> Update jupyterlab requirement from ==4.0.8 to ==4.0.9 (#2740) Updates the requirements on [jupyterlab](https://github.com/jupyterlab/jupyterlab) to permit the latest version. - [Release notes](https://github.com/jupyterlab/jupyterlab/releases) - [Changelog](https://github.com/jupyterlab/jupyterlab/blob/@jupyterlab/[email protected]/CHANGELOG.md) - [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/[email protected]...@jupyterlab/[email protected]) --- updated-dependencies: - dependency-name: jupyterlab dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taner Topal <[email protected]> HeteroFL baseline (#2439) Co-authored-by: jafermarq <[email protected]> Retire `MXNet` examples (#2724) Co-authored-by: Taner Topal <[email protected]> Rename draft release workflow and create release (#2658) Update Android manifest to include internet permission (#2672) Bump lewagon/wait-on-check-action from 1.3.1 to 1.3.3 (#2756) Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.1 to 1.3.3. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Commits](lewagon/wait-on-check-action@v1.3.1...v1.3.3) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Update ruff requirement from ==0.1.4 to ==0.1.9 (#2753) Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.1.4...v0.1.9) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel J. Beutel <[email protected]> Add FedAvgM baseline (#2246) Co-authored-by: Daniel J. Beutel <[email protected]> Co-authored-by: jafermarq <[email protected]> Add dockerfile for flower client image (#2746) Add docker client image ci (#2747) Rename `workload_id` to `run_id` (#2769) Update README.md (#2771) Format code examples (#2767) Rename WorkloadState to RunState (#2770) Add in-place FedAvg (#2293) Update the error message when simulation crashes (#2759) Add tests Add tests Fix tests Fix tests
- Loading branch information
1 parent
e78e6c1
commit 7927581
Showing
132 changed files
with
8,765 additions
and
645 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
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,36 @@ | ||
name: Build docker client image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
flwr-version: | ||
description: "Version of Flower e.g. (1.6.0)." | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-client-images: | ||
name: Build client images | ||
uses: ./.github/workflows/_docker-build.yml | ||
# run only on default branch when using it with workflow_dispatch | ||
if: github.ref_name == github.event.repository.default_branch | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
with: | ||
namespace-repository: flwr/client | ||
file-dir: src/docker/client | ||
build-args: | | ||
FLWR_VERSION=${{ github.event.inputs.flwr-version }} | ||
BASE_IMAGE_TAG=py${{ matrix.python-version }}-ubuntu22.04 | ||
tags: | | ||
${{ github.event.inputs.flwr-version }}-py${{ matrix.python-version }}-ubuntu22.04 | ||
${{ github.event.inputs.flwr-version }} | ||
latest | ||
secrets: | ||
dockerhub-user: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }} |
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,63 @@ | ||
name: Draft release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
publish: | ||
if: ${{ github.repository == 'adap/flower' }} | ||
name: Publish draft | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Wait for wheel to be built | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Build, test and upload wheel' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
- name: Download wheel | ||
run: | | ||
tag_name=$(echo "${GITHUB_REF_NAME}" | cut -c2-) | ||
echo "TAG_NAME=$tag_name" >> "$GITHUB_ENV" | ||
wheel_name="flwr-${tag_name}-py3-none-any.whl" | ||
echo "WHEEL_NAME=$wheel_name" >> "$GITHUB_ENV" | ||
tar_name="flwr-${tag_name}.tar.gz" | ||
echo "TAR_NAME=$tar_name" >> "$GITHUB_ENV" | ||
wheel_url="https://artifact.flower.dev/py/main/${GITHUB_SHA::7}/${wheel_name}" | ||
tar_url="https://artifact.flower.dev/py/main/${GITHUB_SHA::7}/${tar_name}" | ||
curl $wheel_url --output $wheel_name | ||
curl $tar_url --output $tar_name | ||
- name: Upload wheel | ||
env: | ||
AWS_DEFAULT_REGION: ${{ secrets. AWS_DEFAULT_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }} | ||
run: | | ||
aws s3 cp --content-disposition "attachment" --cache-control "no-cache" ./${{ env.WHEEL_NAME }} s3://artifact.flower.dev/py/release/v${{ env.TAG_NAME }}/${{ env.WHEEL_NAME }} | ||
aws s3 cp --content-disposition "attachment" --cache-control "no-cache" ./${{ env.TAR_NAME }} s3://artifact.flower.dev/py/release/v${{ env.TAG_NAME }}/${{ env.TAR_NAME }} | ||
- name: Generate body | ||
run: | | ||
./dev/get-latest-changelog.sh > body.md | ||
cat body.md | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: ./body.md | ||
draft: true | ||
name: Flower ${{ env.TAG_NAME }} | ||
files: | | ||
${{ env.WHEEL_NAME }} | ||
${{ env.TAR_NAME }} |
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,63 +1,40 @@ | ||
name: Release Framework | ||
name: Publish `flwr` release on PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
release: | ||
types: [released] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
if: ${{ github.repository == 'adap/flower' }} | ||
name: Publish draft | ||
name: Publish release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Wait for wheel to be built | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Build, test and upload wheel' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
- name: Download wheel | ||
run: | | ||
tag_name=$(echo "${GITHUB_REF_NAME}" | cut -c2-) | ||
echo "TAG_NAME=$tag_name" >> "$GITHUB_ENV" | ||
wheel_name="flwr-${tag_name}-py3-none-any.whl" | ||
echo "WHEEL_NAME=$wheel_name" >> "$GITHUB_ENV" | ||
tar_name="flwr-${tag_name}.tar.gz" | ||
echo "TAR_NAME=$tar_name" >> "$GITHUB_ENV" | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Bootstrap | ||
uses: ./.github/actions/bootstrap | ||
|
||
- name: Get artifacts and publish | ||
env: | ||
GITHUB_REF: ${{ github.ref }} | ||
run: | | ||
TAG_NAME=$(echo "${GITHUB_REF_NAME}" | cut -c2-) | ||
wheel_name="flwr-${TAG_NAME}-py3-none-any.whl" | ||
tar_name="flwr-${TAG_NAME}.tar.gz" | ||
wheel_url="https://artifact.flower.dev/py/release/v${TAG_NAME}/${wheel_name}" | ||
tar_url="https://artifact.flower.dev/py/release/v${TAG_NAME}/${tar_name}" | ||
curl $wheel_url --output $wheel_name | ||
curl $tar_url --output $tar_name | ||
wheel_url="https://artifact.flower.dev/py/main/${GITHUB_SHA::7}/${wheel_name}" | ||
tar_url="https://artifact.flower.dev/py/main/${GITHUB_SHA::7}/${tar_name}" | ||
curl $wheel_url --output $wheel_name | ||
curl $tar_url --output $tar_name | ||
- name: Upload wheel | ||
env: | ||
AWS_DEFAULT_REGION: ${{ secrets. AWS_DEFAULT_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }} | ||
run: | | ||
aws s3 cp --content-disposition "attachment" --cache-control "no-cache" ./${{ env.WHEEL_NAME }} s3://artifact.flower.dev/py/release/v${{ env.TAG_NAME }}/${{ env.WHEEL_NAME }} | ||
aws s3 cp --content-disposition "attachment" --cache-control "no-cache" ./${{ env.TAR_NAME }} s3://artifact.flower.dev/py/release/v${{ env.TAG_NAME }}/${{ env.TAR_NAME }} | ||
- name: Generate body | ||
run: | | ||
./dev/get-latest-changelog.sh > body.md | ||
cat body.md | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: ./body.md | ||
draft: true | ||
name: Flower ${{ env.TAG_NAME }} | ||
files: | | ||
${{ env.WHEEL_NAME }} | ||
${{ env.TAR_NAME }} | ||
python -m poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} |
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
Oops, something went wrong.