Skip to content

Commit 5f8f2a4

Browse files
Create build.yml
1 parent 939cf8d commit 5f8f2a4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: build
10+
jobs:
11+
py-check:
12+
runs-on: ${{ matrix.config.os }}
13+
name: ${{ matrix.config.os }} (${{ matrix.config.py }})
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
config:
18+
# - { os: windows-latest, py: "3.7" }
19+
# - { os: macOS-latest, py: "3.7" }
20+
- { os: ubuntu-latest, py: "3.6" }
21+
- { os: ubuntu-latest, py: "3.7" }
22+
- { os: ubuntu-latest, py: "3.8" }
23+
- { os: ubuntu-latest, py: "3.9" }
24+
- { os: ubuntu-latest, py: "3.10" }
25+
26+
env:
27+
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
28+
steps:
29+
- name: CHECKOUT CODE
30+
uses: actions/checkout@v2
31+
- name: SETUP PYTHON
32+
uses: actions/setup-python@v1
33+
with:
34+
python-version: ${{ matrix.config.py }}
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install --user --no-cache-dir Cython
39+
pip install --user -r requirements.txt
40+
pip install --user -r requirements_dev.txt
41+
- name: PKG-TEST
42+
run: |
43+
python -m unittest discover tests/

0 commit comments

Comments
 (0)