-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (41 loc) · 1.2 KB
/
tests_full.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
41
42
43
44
45
name: Tests Full
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: arc-runner-set
strategy:
matrix:
python-version: ["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: Install dependencies
run: |
sudo apt-get update
sudo apt-get install curl -y # required by coveralls
sudo apt-get install git -y
python -m pip install torch
python -m pip install --upgrade pip setuptools wheel
export FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE
python -m pip install -e .[tests]
- name: Run tests
run: |
pytest
# sh tests/run_all_tests.sh 0 1
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload coverage data to coveralls.io
# run: |
# python -m pip install coveralls[toml]
# COVERALLS_INPUT=.coverage_reports/.coverage coveralls --service=github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}