Skip to content

Only run pytest on python directory #2653

Only run pytest on python directory

Only run pytest on python directory #2653

Workflow file for this run

name: Codegen Test
on:
push:
pull_request:
merge_group:
jobs:
detect-changes:
uses: ./.github/workflows/check_diff.yaml
with:
pattern: ^codegen.*
test:
name: codegen test
runs-on: ubuntu-latest
needs: detect-changes
if: needs.detect-changes.outputs.changed == 'true'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: set up python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
token: ${{github.token}}
- name: install requirements
run: |
pip install -e codegen
- name: test
run: ./codegen/test/test.sh