Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
b16347e5
Commit
b16347e5
authored
Jul 22, 2020
by
Henry Schreiner
Committed by
Henry Schreiner
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: enable GHA testing
Adds requirements file too.
parent
73dc9786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
.github/workflows/ci.yml
+81
-0
tests/requirements.txt
+3
-0
No files found.
.github/workflows/ci.yml
0 → 100644
View file @
b16347e5
name
:
CI
on
:
workflow_dispatch
:
pull_request
:
push
:
branches
:
-
master
-
stable
-
v*
jobs
:
standard
:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu
,
windows
,
macos
]
python
:
-
2.7
-
3.5
-
3.8
-
3.9-dev
-
pypy2
-
pypy3
include
:
-
os
:
ubuntu
python
:
3.6
-
os
:
macos
python
:
3.7
exclude
:
# Currently 32bit only, and we build 64bit
-
os
:
windows
python
:
pypy2
-
os
:
windows
python
:
pypy3
# Currently can't build due to warning, fixed in CPython > 3.9b5
-
os
:
macos
python
:
3.9-dev
# Currently broken on embed_test
-
os
:
windows
python
:
3.8
-
os
:
windows
python
:
3.9-dev
name
:
Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on
:
${{ matrix.os }}-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Setup Python ${{ matrix.python }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python }}
-
name
:
Prepare env
run
:
python -m pip install -r tests/requirements.txt
-
name
:
Configure
shell
:
bash
run
:
>
cmake -S . -B build
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
-
name
:
Build
run
:
cmake --build build -j 2
-
name
:
Python tests
run
:
cmake --build build --target pytest -j 2 -v
-
name
:
C++ tests
run
:
cmake --build build --target cpptest -j 2 -v
-
name
:
Interface test
run
:
cmake --build build --target test_cmake_build
tests/requirements.txt
0 → 100644
View file @
b16347e5
--extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010/
numpy
; platform_python_implementation!="PyPy" or sys_platform!="darwin" or python_version<"3.0"
pytest
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment