Skip to content

fix requirements + aggregate setup & req. & config in pyproject #796

fix requirements + aggregate setup & req. & config in pyproject

fix requirements + aggregate setup & req. & config in pyproject #796

Workflow file for this run

name: CPU tests
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
defaults:
run:
shell: bash
jobs:
pytester:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "macos-13", "windows-2022"]
python-version: ["3.10"]
pkg-install: ["no", "yes"]
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
pyproject.toml
setup.py
- name: Install package & dependencies
run: |
pip install ".[all]" pytest
pip list
- name: Drop package itself
if: matrix.pkg-install == 'no'
run: pip uninstall -y lit-llama
- name: Run tests
run: pytest -v --durations=10
testing-guardian:
runs-on: ubuntu-latest
needs: pytester
if: always()
steps:
- run: echo "${{ needs.pytester.result }}"
- name: failing...
if: needs.pytester.result == 'failure'
run: exit 1
- name: cancelled or skipped...
if: contains(fromJSON('["cancelled", "skipped"]'), needs.pytester.result)
timeout-minutes: 1
run: sleep 90