Skip to content

fixing parsing tree bug and using lark standalone #96

fixing parsing tree bug and using lark standalone

fixing parsing tree bug and using lark standalone #96

Workflow file for this run

name: Python package
on: [ push, pull_request ]
jobs:
unittests:
runs-on: ubuntu-latest
defaults:
run:
shell: "bash -l {0}"
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
name: Tests for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
use-mamba: true
python-version: ${{ matrix.python-version }}
activate-environment: formulate-env
# - name: Install ROOT
# run: |
# conda config --add channels conda-forge
# conda config --set channel_priority strict
# conda install root -y
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
conda install coveralls -y
conda install pytest-cov -y
pip install -e .[dev,test]
- name: Test with pytest
run: |
pytest --cov=formulate --verbose
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- name: Install wheel and sdist requirements
run: python -m pip install "build"
- name: Build sdist and wheel
run: python3 -m build
- uses: actions/upload-artifact@v2
with:
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')