jaothan commited on
Commit
034f70a
·
verified ·
1 Parent(s): 75ca9cb

Upload 2 files

Browse files
.github/workflows/lint_and_test.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Lint & Test
2
+
3
+ on:
4
+ push:
5
+ branches-ignore:
6
+ - main
7
+
8
+ jobs:
9
+ black:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@master
13
+ - uses: psf/black@stable
14
+
15
+ flake8-py3:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Setup Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.10"
22
+ architecture: x64
23
+ - uses: actions/checkout@v4
24
+ - run: pip install flake8
25
+ - uses: suo/flake8-github-action@releases/v1
26
+ with:
27
+ checkName: "flake8-py3" # NOTE: this needs to be the same as the job name
28
+ env:
29
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/sync_to_spaces.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://effixis:$HF_TOKEN@huggingface.co/spaces/effixis/shared-amld-sql-injection-demo main