-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 1011 Bytes
/
tests.yml
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
36
37
38
39
40
name: Tests
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
types: [review_requested, ready_for_review, auto_merge_enabled]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Comment out dependencies that require GPU
run: |
sed -i 's/"flash-attn"/#"flash-attn"/g' pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e .[tests]
- name: Run tests
run: |
pytest
- name: Upload coverage data to coveralls.io
run: |
python -m pip install coveralls[toml]
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}