Skip to content

Commit

Permalink
Use pixi in update_grammar workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Nov 4, 2024
1 parent a8e5241 commit e79888e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/update_grammar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,19 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.11
miniforge-variant: Mambaforge
miniforge-version: 4.11.0-2
use-mamba: true
environment-file: environment.yml
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/[email protected]
- name: Download ANTLR
working-directory: src/pytsql/grammar
run: wget https://repo1.maven.org/maven2/org/antlr/antlr4/4.13.1/antlr4-4.13.1-complete.jar
- name: Download latest grammar definition and re-generate grammar targets
working-directory: src/pytsql/grammar
run: |
bash helper_generate_grammar_targets.sh antlr4-4.13.1-complete.jar -d
- name: Install package
run: pip install .
- name: Install package (test compilation)
run:
pixi run pip install .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
Expand Down

0 comments on commit e79888e

Please sign in to comment.