Fix CLI live node validation workflows #20
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: Validate | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| path: xian-cli | |
| - name: Check out xian-abci | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: xian-technology/xian-abci | |
| path: xian-abci | |
| - name: Check out xian-contracting | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: xian-technology/xian-contracting | |
| path: xian-contracting | |
| - name: Check out xian-py | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: xian-technology/xian-py | |
| path: xian-py | |
| - name: Check out xian-configs | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: xian-technology/xian-configs | |
| path: xian-configs | |
| - name: Check out xian-stack | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: xian-technology/xian-stack | |
| path: xian-stack | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: python -m pip install uv | |
| - name: Sync dependencies | |
| working-directory: xian-cli | |
| run: uv sync --group dev | |
| - name: Ruff lint | |
| working-directory: xian-cli | |
| run: uv run ruff check . | |
| - name: Ruff format check | |
| working-directory: xian-cli | |
| run: uv run ruff format --check . | |
| - name: Run tests with coverage | |
| working-directory: xian-cli | |
| run: uv run pytest --cov=xian_cli --cov-report=term-missing --cov-report=xml | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: xian-cli-coverage | |
| path: xian-cli/coverage.xml |