Skip to content

Commit 09ecede

Browse files
authored
GitHub actions test (#77)
Added GitHub Actions CI
1 parent 271d235 commit 09ecede

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
continue-on-error: ${{ matrix.experimental }}
11+
name: Python ${{ matrix.python-version }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: [3.5, 3.6, 3.7, 3.8]
16+
experimental: [false]
17+
include:
18+
- python-version: 3.4
19+
experimental: true
20+
- python-version: 3.9-dev
21+
experimental: true
22+
- python-version: 3.10-dev
23+
experimental: true
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
if: "!endsWith(matrix.python-version, '-dev')"
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: deadsnakes/action@v1.0.0
34+
if: endsWith(matrix.python-version, '-dev')
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
- name: Installing dependencies Python ${{ matrix.python-version }}
38+
run: |
39+
pip install -r requirements.txt
40+
pip install codecov coverage
41+
- name: Running tests Python ${{ matrix.python-version }}
42+
run: |
43+
cd styleframe/tests/
44+
coverage run tests.py
45+
coverage xml
46+
- name: Uploading coverage Python ${{ matrix.python-version }}
47+
uses: codecov/codecov-action@v1
48+

0 commit comments

Comments
 (0)