Version update for ANTLR runtime #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Testing | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: | |
- main | |
- auto_test | |
- dev | |
- dev_1.0_grammar | |
pull_request: | |
branches: | |
- main | |
- auto_test | |
- dev | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "test" | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.1.12 | |
- name: Install dependencies | |
run: | | |
poetry install --no-dev | |
poetry run python -m pip install pytest-cov | |
- name: Run tests | |
run: | | |
cd tests | |
poetry run python -m pytest --cov=../glyles/ --cov-report=xml -m "not todo and not slow" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
files: coverage.xml |