Skip to content

Commit

Permalink
Merge branch 'main' into aziz/unjsonable
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt authored Oct 11, 2024
2 parents d1f5592 + f47a869 commit f42e479
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cd-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ concurrency:

jobs:
deploy-syftbox-server:
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: syftbox-sh-linux-x64

steps:
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- name: Checkout SyftBox repo
uses: actions/checkout@v4

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/cd-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ jobs:

deploy-syftbox:
needs: [call-pr-tests]
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: syftbox-sh-linux-x64

steps:
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- name: Checkout SyftBox repo with github token
uses: actions/checkout@v4
with:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,24 @@ jobs:
strategy:
max-parallel: 99
matrix:
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest]
runner: [syftbox-sh-linux-x64, syftbox-sh-mac-arm64]
python-version: ["3.12", "3.11", "3.10"]
fail-fast: false

runs-on: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
steps:
- name: Permission to home directory
run: |
sudo chown -R $USER:$USER $HOME
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions syftbox/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def sync_on_event(event: FileSystemEvent):
run_plugin("sync", event)

watch_dir = Path(app.shared_state.client_config.sync_folder)
watch_dir.mkdir(parents=True, exist_ok=True)
event_handler = AnyFileSystemEventHandler(
watch_dir,
callbacks=[sync_on_event],
Expand Down

0 comments on commit f42e479

Please sign in to comment.