chore(deps): update dependency npm-run-all2 to v9.0.3 (#309) #212
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: CI Tests | |
| permissions: {} | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| env: | |
| PYTHON_VERSION: '3.14' | |
| jobs: | |
| tests: | |
| permissions: | |
| contents: write # write is required for release_setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| id: setup-python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| enable-cache: true | |
| - name: Set up Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: latest | |
| - name: Install Python Dependencies | |
| env: | |
| UV_PYTHON: ${{ steps.setup-python.outputs.python-path }} | |
| run: uv sync --locked | |
| - name: Install Node Dependencies | |
| shell: bash | |
| run: npm ci --ignore-scripts | |
| - name: Test with pytest | |
| id: pytest | |
| run: uv run --locked pytest | |
| - name: Test with Jest | |
| id: jest | |
| if: always() | |
| env: | |
| FORCE_COLOR: true | |
| shell: bash | |
| run: npm test | |
| - name: Upload coverage | |
| # any except canceled or skipped | |
| if: >- | |
| always() && | |
| ( | |
| steps.pytest.outcome == 'success' || | |
| steps.pytest.outcome == 'failure' || | |
| steps.jest.outcome == 'success' || | |
| steps.jest.outcome == 'failure' | |
| ) && | |
| startsWith(github.repository, 'LizardByte/') | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| fail_ci_if_error: true | |
| files: ./coverage/python-coverage.xml,./coverage/coverage-final.json | |
| flags: ${{ runner.os }} | |
| report_type: coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| - name: Upload test results | |
| # any except canceled or skipped | |
| if: >- | |
| always() && | |
| ( | |
| steps.pytest.outcome == 'success' || | |
| steps.pytest.outcome == 'failure' || | |
| steps.jest.outcome == 'success' || | |
| steps.jest.outcome == 'failure' | |
| ) && | |
| startsWith(github.repository, 'LizardByte/') | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| fail_ci_if_error: true | |
| files: ./junit-python.xml,./junit.xml | |
| flags: ${{ runner.os }} | |
| report_type: test_results | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true |