Skip to content

Commit da0b1f9

Browse files
committed
Add GitHub Actions CI workflows
1 parent 1b53295 commit da0b1f9

7 files changed

Lines changed: 134 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Run Continuous Integration on every push
2+
name: continuous_integration
3+
on: [push, pull_request]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Run the test suite
12+
run: |
13+
cd $GITHUB_WORKSPACE
14+
pip3 install pip setuptools wheel
15+
python3 setup.py test
16+
17+
- name: Upload coverage report to Codacy
18+
uses: codacy/codacy-coverage-reporter-action@master
19+
with:
20+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.5.1
3+
name: python_compatibility_3.5.1
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.5.1 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.5.1-eggs
17+
18+
- name: Run tests on 3.5.1 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.5.1 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.5
3+
name: python_compatibility_3.5
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.5 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.5-eggs
17+
18+
- name: Run tests on 3.5 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.5 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.6.1
3+
name: python_compatibility_3.6.1
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.6.1 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.6-eggs
17+
18+
- name: Run tests on 3.6.1 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.6.1 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.6
3+
name: python_compatibility_3.6
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.6 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.6-eggs
17+
18+
- name: Run tests on 3.6 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.6 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.7
3+
name: python_compatibility_3.7
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.7 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.7-eggs
17+
18+
- name: Run tests on 3.7 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.7 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run Continuous Integration on every push
2+
# This tests Python 3.8
3+
name: python_compatibility_3.8
4+
on: [push, pull_request]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache Python 3.8 eggs
13+
uses: actions/cache@v1
14+
with:
15+
path: ${{ github.workspace }}/.eggs
16+
key: python-compatibility-3.8-eggs
17+
18+
- name: Run tests on 3.8 latest
19+
run: docker run -v "${GITHUB_WORKSPACE}:/home/ymmsl-python" python:3.8 /bin/bash -c 'cd /home/ymmsl-python && pip install -U pip setuptools wheel && python setup.py test'

0 commit comments

Comments
 (0)