-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,562 changed files
with
49,277 additions
and
559,740 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 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,42 @@ | ||
name: CD - Docs | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
none: | ||
description: "Deploy Syft Documentation" | ||
required: false | ||
pull_request: | ||
branches: [dev] | ||
paths: [docs/] | ||
push: | ||
branches: [dev] | ||
paths: [docs/] | ||
|
||
jobs: | ||
cd-docs: | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install tox | ||
run: | | ||
pip install -U tox | ||
- name: Build the docs | ||
run: | | ||
tox -e syft.docs | ||
- name: Deploy the docs | ||
uses: s0/git-publish-subdir-action@develop | ||
env: | ||
REPO: self | ||
BRANCH: gh-pages | ||
FOLDER: docs/build/html | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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,80 @@ | ||
name: CD - HAGrid | ||
|
||
on: | ||
schedule: | ||
- cron: "00 03 * * 5" # Thursday | ||
workflow_dispatch: | ||
inputs: | ||
none: | ||
description: "Run hagrid cd manually" | ||
required: false | ||
|
||
jobs: | ||
call-hagrid-tests: | ||
if: github.repository == 'OpenMined/PySyft' # don't run on forks | ||
uses: OpenMined/PySyft/.github/workflows/pr-tests-hagrid.yml@dev | ||
|
||
deploy-hagrid: | ||
needs: call-hagrid-tests | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
current_hash: ${{ steps.get_hash.outputs.current_hash }} | ||
previous_hash: ${{ steps.get_hash.outputs.previous_hash }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.SYFT_BUMP_TOKEN }} | ||
- name: Install checksumdir | ||
run: | | ||
pip install --upgrade checksumdir | ||
- name: Get the hashes | ||
id: get-hashes | ||
run: | | ||
current_hash=$(checksumdir ./packages/hagrid) | ||
echo "::set-output name=current_hash::$current_hash" | ||
previous_hash=$(cat ./scripts/hagrid_hash) | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade tox setuptools wheel twine bump2version PyYAML | ||
- name: Bump the Version | ||
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}} | ||
run: | | ||
python3 hagrid/version.py | ||
python3 scripts/update_manifest.py | ||
bump2version patch --allow-dirty --no-commit | ||
tox -e lint || true | ||
python3 hagrid/version.py | ||
working-directory: ./packages/hagrid | ||
|
||
- name: Write the new hash | ||
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}} | ||
run: echo $(checksumdir packages/hagrid) > ./scripts/hagrid_hash | ||
|
||
- name: Commit changes | ||
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}} | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
author_name: Madhava Jay | ||
author_email: [email protected] | ||
message: "bump version" | ||
add: "['./packages/hagrid/.bumpversion.cfg','./packages/hagrid/setup.py','./packages/hagrid/hagrid/version.py', './scripts/hagrid_hash', './packages/hagrid/hagrid/manifest_template.yml']" | ||
pull_strategy: NO-PULL | ||
|
||
- name: Build and publish | ||
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}} | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.HAGRID_BUMP_TOKEN }} | ||
run: | | ||
tox -e hagrid.publish | ||
twine upload packages/hagrid/dist/* |
Oops, something went wrong.