Try custom CI for this branch #34
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: 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 | ||
| 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 | ||