shunk031 commited on
Commit
e5beee6
1 Parent(s): d7eeab3

Delete .github

Browse files
.github/workflows/ci.yaml DELETED
@@ -1,49 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
- branches: [main]
8
- paths-ignore:
9
- - "README.md"
10
-
11
- jobs:
12
- test:
13
- runs-on: ubuntu-latest
14
- strategy:
15
- matrix:
16
- python-version: ["3.9", "3.10"]
17
-
18
- steps:
19
- - uses: actions/checkout@v3
20
-
21
- - name: Set up Python ${{ matrix.python-version }}
22
- uses: actions/setup-python@v4
23
- with:
24
- python-version: ${{ matrix.python-version }}
25
-
26
- - name: Install dependencies
27
- run: |
28
- pip install -U pip setuptools wheel poetry
29
- poetry install
30
-
31
- - name: Format
32
- run: |
33
- poetry run black --check .
34
-
35
- - name: Lint
36
- run: |
37
- poetry run ruff .
38
-
39
- - name: Type check
40
- run: |
41
- poetry run mypy . \
42
- --ignore-missing-imports \
43
- --no-strict-optional \
44
- --no-site-packages \
45
- --cache-dir=/dev/null
46
-
47
- - name: Run tests
48
- run: |
49
- poetry run pytest --color=yes -rf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/push_to_hub.yaml DELETED
@@ -1,26 +0,0 @@
1
- name: Sync to Hugging Face Hub
2
-
3
- on:
4
- workflow_run:
5
- workflows:
6
- - CI
7
- branches:
8
- - main
9
- types:
10
- - completed
11
-
12
- jobs:
13
- push_to_hub:
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - name: Checkout repository
18
- uses: actions/checkout@v3
19
-
20
- - name: Push to Huggingface hub
21
- env:
22
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
- HF_USERNAME: ${{ secrets.HF_USERNAME }}
24
- run: |
25
- git fetch --unshallow
26
- git push --force https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/datasets/${HF_USERNAME}/Rico main