gperdrizet commited on
Commit
5fc8145
·
verified ·
1 Parent(s): 664cd79

Added GitHub workflows for running tests on pull request from dev and publication of release to HuggingFace space

Browse files
.github/publish_hf_space.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: HuggingFace Space
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ # to run this workflow manually from the Actions tab, if desired
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ sync-to-hub:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+ - name: Push to hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: git push https://gperdrizet:[email protected]/spaces/gperdrizet/resumate main
.github/python_ci.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Python CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ "main" ]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ build:
12
+
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up Python 3.10
18
+ uses: actions/setup-python@v3
19
+ with:
20
+ python-version: "3.10"
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install -r requirements.txt
25
+ - name: Test with unittest
26
+ run: |
27
+ python -m unittest tests/test_context_acquisition.py