-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (53 loc) · 1.36 KB
/
build_test.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build and test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '**.rst'
- 'docs/**'
push:
branches:
- main
paths-ignore:
- '**.rst'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_test:
strategy:
matrix:
os: ["ubuntu-20.04", "macos-latest"]
python: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
make requirements
- name: Build packages
run: |
make package
- name: Repair wheels
if: "matrix.os == 'ubuntu-20.04'"
run: |
pip install -U auditwheel patchelf
auditwheel repair --plat manylinux_2_24_x86_64 --wheel-dir dist dist/ada_url-*linux*.whl
- name: Run tests
run: |
pip install -e .
make coverage
- name: Build docs with sphinx
if: "matrix.python == '3.8' && matrix.os == 'ubuntu-20.04'"
run: |
make docs
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: ada-url-packages
path: dist/*