Skip to content

Commit ebcec67

Browse files
authored
Merge pull request #203 from chaostoolkit/move-to-gh-workflows
Move to gh workflows
2 parents f6c33d1 + e597242 commit ebcec67

File tree

7 files changed

+54
-94
lines changed

7 files changed

+54
-94
lines changed

.github/workflows/build.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-16.04
8+
strategy:
9+
matrix:
10+
python-version: [3.5, 3.6, 3.7, 3.8]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip setuptools wheel
20+
pip install -r requirements.txt -r requirements-dev.txt
21+
- name: Checking the code syntax
22+
run: |
23+
pycodestyle --first chaoslib
24+
- name: Run tests
25+
run: |
26+
pip install -e .
27+
pytest tests/
28+
29+
build:
30+
runs-on: ubuntu-16.04
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Set up Python
34+
uses: actions/setup-python@v1
35+
with:
36+
python-version: '3.5'
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip setuptools wheel
40+
- name: Build the choastoolkit-lib package
41+
run : |
42+
python3 setup.py build

.github/workflows/release.yaml

Whitespace-only changes.

.travis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
[197]: https://github.com/chaostoolkit/chaostoolkit-lib/issues/197
1515

16+
### Changed
17+
18+
- Moved from TravisCI to GitHub Workflows [#201][201]
19+
20+
[201]: https://github.com/chaostoolkit/chaostoolkit-lib/issues/201
21+
1622
## [1.16.0][] - 2020-12-02
1723

1824
[1.16.0]: https://github.com/chaostoolkit/chaostoolkit-lib/compare/1.15.1...1.16.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Version](https://img.shields.io/pypi/v/chaostoolkit-lib.svg)](https://img.shields.io/pypi/v/chaostoolkit-lib.svg)
44
[![License](https://img.shields.io/pypi/l/chaostoolkit-lib.svg)](https://img.shields.io/pypi/l/chaostoolkit-lib.svg)
55

6-
[![Build Status](https://travis-ci.org/chaostoolkit/chaostoolkit-lib.svg?branch=master)](https://travis-ci.org/chaostoolkit/chaostoolkit-lib)
6+
![Build](https://github.com/chaostoolkit/chaostoolkit-lib/workflows/Build/badge.svg)
77
[![codecov](https://codecov.io/gh/chaostoolkit/chaostoolkit-lib/branch/master/graph/badge.svg)](https://codecov.io/gh/chaostoolkit/chaostoolkit-lib)
88
[![Python versions](https://img.shields.io/pypi/pyversions/chaostoolkit-lib.svg)](https://www.python.org/)
99

ci.bash

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/test_exit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
from copy import deepcopy
2+
import os
23
import threading
34
import time
45
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
56

7+
import pytest
8+
69
from chaoslib.exit import exit_gracefully, exit_ungracefully
710
from chaoslib.run import Runner
811
from chaoslib.types import Strategy
912

1013
from fixtures import experiments
1114

15+
pytestmark = pytest.mark.skipif(os.getenv("CI") != None, reason="Skip CI")
16+
1217

1318
def run_http_server_in_background():
1419
def slow_app(environ, start_response):

0 commit comments

Comments
 (0)