Skip to content

Commit 78fc1c2

Browse files
committed
use github actions for testing.
1 parent 280a856 commit 78fc1c2

File tree

4 files changed

+116
-3
lines changed

4 files changed

+116
-3
lines changed

.github/workflows/test-osx.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test OSX
2+
3+
on:
4+
push:
5+
branches: [ develop, master ]
6+
pull_request:
7+
branches: [ develop, master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macOS-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.6', '3.7', '3.8', '3.9']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: setup
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: prerequisites
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install flake8 pytest pytest-asyncio mock flake8 pyyaml codecov pytest-cov
27+
- name: lint
28+
run: |
29+
flake8 src/faber tests
30+
- name: test
31+
run: |
32+
export PYTHONPATH=`pwd`/src
33+
python -m faber.cli --info=tools cxx
34+
pytest --cov=./src --compiler=native -vs
35+
- name: coverage
36+
run: |
37+
codecov

.github/workflows/test-ubuntu.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Ubuntu
2+
3+
on:
4+
push:
5+
branches: [ develop, master ]
6+
pull_request:
7+
branches: [ develop, master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: setup
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: prerequisites
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install flake8 pytest pytest-asyncio mock flake8 pyyaml codecov pytest-cov
27+
- name: lint
28+
run: |
29+
flake8 src/faber tests
30+
- name: test
31+
run: |
32+
export PYTHONPATH=`pwd`/src
33+
python -m faber.cli --info=tools cxx
34+
pytest --cov=./src --compiler=native -vs
35+
- name: coverage
36+
run: |
37+
codecov

.github/workflows/test-windows.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Windows
2+
3+
on:
4+
push:
5+
branches: [ develop, master ]
6+
pull_request:
7+
branches: [ develop, master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: windows-2019
13+
strategy:
14+
matrix:
15+
python-version: ['3.6', '3.7', '3.8', '3.9']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: setup
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: prerequisites
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install flake8 pytest pytest-asyncio mock flake8 pyyaml codecov pytest-cov
27+
- name: lint
28+
run: |
29+
flake8 src/faber tests
30+
- name: test
31+
shell: cmd
32+
run: |
33+
set PYTHONPATH=%cd%\\src
34+
python -m faber.cli --info=tools cxx
35+
pytest --cov=./src --compiler=native -vs
36+
- name: coverage
37+
run: |
38+
codecov

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
![logo](https://github.com/stefanseefeld/faber/raw/develop/doc/_static/logo.png)
22

33

4-
Linux & OSX: [![travis-ci](https://travis-ci.org/stefanseefeld/faber.svg?branch=develop)](https://travis-ci.org/stefanseefeld/faber)
5-
Windows: [![appveyor](https://ci.appveyor.com/api/projects/status/vci9pp0endmqcayp/branch/develop?svg=true)](https://ci.appveyor.com/project/stefanseefeld/faber/branch/develop)
4+
CI: ![Linux](https://github.com/stefanseefeld/faber/workflows/Test%20Ubuntu/badge.svg)
5+
![OSX](https://github.com/stefanseefeld/faber/workflows/Test%20OSX/badge.svg)
6+
![Windows](https://github.com/stefanseefeld/faber/workflows/Test%20Windows/badge.svg)
7+
68
Code coverage: [![codecov.io](https://codecov.io/gh/stefanseefeld/faber/branch/develop/graph/badge.svg)](https://codecov.io/gh/stefanseefeld/faber)
79

810
This project started as a clone of [Boost.Build](https://github.com/boostorg/build/), to experiment with a new Python frontend.
911
Meanwhile it has evolved into a new build system, which retains most of the features found in Boost.Build, but with (hopefully !)
1012
much simplified logic, in addition of course to using Python as scripting language, rather than Jam.
11-
The original bjam engine is still in use as scheduler, though at this point that is mostly an implementation detail.
1213

1314

1415
Building and Installing

0 commit comments

Comments
 (0)