Get Python apps working again after Viceroy WIT updates etc. #32
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: Python CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: forge-amd64-medium | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get wasiless submodule | |
| # Org-internal submodules are very tricky to check out. | |
| env: | |
| SSHK: ${{ secrets.WASILESS_REPO_READ_KEY }} | |
| run: | | |
| mkdir -p $HOME/.ssh | |
| echo "$SSHK" > $HOME/.ssh/ssh.key | |
| chmod 600 $HOME/.ssh/ssh.key | |
| export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/ssh.key" | |
| git submodule update --init --recursive | |
| - name: Set Up Rust Toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: '1.86.0' | |
| target: wasm32-unknown-unknown | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Install wasm-tools and wac | |
| run: cargo install wasm-tools wac-cli | |
| - name: Install viceroy | |
| # When you switch tags, update the cache key below. | |
| run: cargo install --git https://github.com/fastly/Viceroy.git --tag erik/python-sdk-compatible-1 viceroy | |
| - name: Cache Viceroy build | |
| uses: actions/cache@v4 | |
| with: | |
| key: python-sdk-compatible-1 | |
| path: | | |
| ~/.cargo/bin/viceroy | |
| - name: Install dependencies | |
| run: uv sync --extra dev --extra test | |
| - name: Check formatting | |
| run: make format-check | |
| - name: Run linting | |
| run: make lint | |
| # - name: Set up Debug Session | |
| # uses: csexton/debugger-action@master | |
| - name: Run tests | |
| run: make test |