From 8396f1bdf70f9657dbc2f4ab0870d696886e124b Mon Sep 17 00:00:00 2001 From: Vladimir Kalnitsky Date: Sat, 9 Nov 2024 00:35:02 +0400 Subject: [PATCH] Add a test workflow --- .github/workflows/test.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..02919b1 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,33 @@ +name: Python CI + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Check out the code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' # Specify your Python version, like '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r python/metaprompt/requirements.txt # If you have a requirements file + pip install pytest + + - name: Run tests + working-directory: python/metaprompt + run: | + pytest