diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index e044d0c..9d65cca 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -4,16 +4,22 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + env: + PATH: /home/deploy/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: - name: Checkout run: | git clone --depth 1 https://git.vainplex.dev/claudia.keller/cortex.git . - git checkout $GITHUB_SHA || true - - name: Install and test + - name: Install dependencies + run: | + pip install -e . --break-system-packages -q + pip install pytest --break-system-packages -q + + - name: Run tests + run: python3 -m pytest tests/ -v --tb=short + + - name: Smoke test CLI run: | - python3 -m pip install -e . --break-system-packages - python3 -m pip install pytest --break-system-packages - python3 -m pytest tests/ -v --tb=short cortex version - cortex triage score "CI test" + cortex triage score "CI smoke test"