Skip to content

Fix parser to handle arbitrarily placed keyword tokens #57

Fix parser to handle arbitrarily placed keyword tokens

Fix parser to handle arbitrarily placed keyword tokens #57

Workflow file for this run

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
working-directory: python/
run: |
python -m pip install --upgrade pip
pip install .
pip install .[dev]
- name: Check formatting
working-directory: python/
run: |
invoke check
- name: Run tests
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
pytest
- name: Check build
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
pip install twine
python setup.py sdist bdist_wheel
twine check dist/*
- name: Run the binary
working-directory: python/
env:
PYTHONPATH: "${{ github.workspace }}/python/src"
run: |
metaprompt