Skip to content

Add CLI utility to convert the tree items of a population into test s… #694

Add CLI utility to convert the tree items of a population into test s…

Add CLI utility to convert the tree items of a population into test s… #694

Workflow file for this run

name: main
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11.5', '3.12', 'pypy-3.9'] # FIXME: forcing to use py3.11.5 since py3.11.7 causes an inexplicable failure in multiprocessing.
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
if: matrix.os == 'windows-latest'
- run: pip install --upgrade tox
- run: tox -v -e py
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11' # FIXME: experiencing SIGSEGV with py3.12.0
- run: pip install --upgrade tox
- run: tox -v -e lint
cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install --upgrade tox coveralls
- run: tox -v -e cov
- run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install --upgrade tox
- run: tox -v -e docs
publish:
needs: [test, lint, docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install --upgrade tox
- run: tox -v -e build
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'renatahodovan/grammarinator'
with:
password: ${{ secrets.pypi_token }}
packages_dir: .tox/build/tmp/