-
Notifications
You must be signed in to change notification settings - Fork 257
35 lines (30 loc) · 752 Bytes
/
ci.yml
File metadata and controls
35 lines (30 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
HF_ALLOW_CODE_EVAL: 1
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install transformers==4.21.1 accelerate==0.13.2 datasets==2.14.6 evaluate==0.2.2 pyext==0.7 mosestokenizer==1.0.0 "fsspec<2023.10.0"
#- name: Lint with flake8
# run: |
# flake8 .
- name: Test with pytest
run: |
python -m pytest tests/