codeflash-omni #11
Workflow file for this run
This file contains hidden or 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
| name: JS/TS Language Unit Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'codeflash/languages/javascript/**' | |
| - 'tests/test_languages/test_js_*.py' | |
| - 'tests/test_languages/fixtures/**' | |
| - 'packages/codeflash/**' | |
| pull_request: | |
| paths: | |
| - 'codeflash/languages/javascript/**' | |
| - 'tests/test_languages/test_js_*.py' | |
| - 'tests/test_languages/fixtures/**' | |
| - 'packages/codeflash/**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| js-language-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12'] | |
| node-version: ['18', '20'] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python dependencies | |
| run: uv sync | |
| - name: Install codeflash npm package dependencies | |
| run: | | |
| cd packages/codeflash | |
| npm install | |
| - name: Run JS/TS code extractor tests | |
| run: | | |
| uv run pytest tests/test_languages/test_js_code_extractor.py -v --tb=short | |
| - name: Run JS/TS code replacer tests | |
| run: | | |
| uv run pytest tests/test_languages/test_js_code_replacer.py -v --tb=short | |
| - name: Run JS multi-file replacer test | |
| run: | | |
| uv run pytest tests/test_languages/test_multi_file_code_replacer.py -v --tb=short |