Update README.md #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |