-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.03 KB
/
ci.yaml
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
name: pdqhash-python CI/CD
on: workflow_dispatch
# We don't currently build for Linux, because
# we need to sort out manylinux. Maybe another day!
jobs:
build:
name: Build Package
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Cache Environment
uses: actions/cache@v3
with:
path: .venv
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}
- name: Initialize
run: make init
- name: Test
run: make test
- name: Package
run: make package
- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*