-
-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (32 loc) · 1.19 KB
/
ubuntu.yml
File metadata and controls
34 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 -c "import sys,json; j=json.load(sys.stdin); assets=j.get('assets',[]); print(next((a.get('browser_download_url') for a in assets if a.get('name','').startswith('xdis_36-') and a.get('name','').endswith('.tar.gz')), ''))")
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