Skip to content

Try custom CI for this branch #34

Try custom CI for this branch

Try custom CI for this branch #34

Workflow file for this run

name: xdis (ubuntu)
on:
push:
branches: [ python-3.6-to-3.10 ]
pull_request:
branches: [ python-3.6-to-3.10 ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# Install the latest xdis release tarball from GitHub Releases (asset named xdis_36-*.tar.gz)
XDIS_URL=$(curl -s https://api.github.com/repos/rocky/python-xdis/releases/latest \
| python - <<'PY'
import sys, json

Check failure on line 26 in .github/workflows/ubuntu.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ubuntu.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
j = json.load(sys.stdin)
assets = j.get("assets", [])
for a in assets:
name = a.get("name","")
if name.startswith("xdis_36-") and name.endswith(".tar.gz"):
print(a.get("browser_download_url"))
break
PY
)
if [ -z "$XDIS_URL" ]; then
echo "ERROR: no xdis_36-*.tar.gz asset found on the latest release"; exit 1
fi
python -m pip install "$XDIS_URL"
pip install -e .
pip install -r requirements-dev.txt
- name: Test xasm
run: |
make check