Skip to content

Commit

Permalink
docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Dec 5, 2023
1 parent ed3d432 commit 07bd820
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 196 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/lmql-ci.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/lmql-release-test.yml

This file was deleted.

46 changes: 8 additions & 38 deletions .github/workflows/lmql-tests.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,10 @@
name: Run Tests
name: 'Run Tests in Docker'
description: 'Runs LMQLs test suite in a Docker container'

on: workflow_dispatch
outputs:
time: # id of output
description: 'The time we greeted you'

jobs:
test-without-hf-transformers:
runs-on: lmql-ci
steps:
- uses: actions/checkout@v3
- name: Setup Fresh Virtual Environment
run: |
pip install --upgrade pip
python3.10 -m venv env
export PATH=$PATH:/home/docker/.local/bin
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Install Dependencies
run: source env/bin/activate && pip install -e . && pip install langchain
- name: Greet
env:
OPENAI_API_KEY: ${{ secrets.LMQL_CI_OPENAI_KEY }}
run: source env/bin/activate && python -m lmql.cli hello openai
test-with-hf-transformers:
runs-on: lmql-ci
needs: [test-without-hf-transformers]
steps:
- uses: actions/checkout@v3
- name: Setup Fresh Virtual Environment
run: |
pip install --upgrade pip
python3.10 -m venv env
export PATH=$PATH:/home/docker/.local/bin
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Install Dependencies
run: source env/bin/activate && pip install -e '.[hf,tests]' && pip install langchain
- name: Run Tests
env:
OPENAI_API_KEY: ${{ secrets.LMQL_CI_OPENAI_KEY }}
run: source env/bin/activate && python src/lmql/tests/all.py --failearly
runs:
using: 'docker'
image: 'Dockerfile.tests'
56 changes: 0 additions & 56 deletions .github/workflows/lmql-web.yml

This file was deleted.

0 comments on commit 07bd820

Please sign in to comment.