diff options
-rw-r--r-- | .github/workflows/cicd.yml | 26 | ||||
-rw-r--r-- | .travis.yml | 21 |
2 files changed, 26 insertions, 21 deletions
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..ce178c9 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,26 @@ +name: croniter +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + set -ex + python -m pip install --upgrade pip + pip install -r requirements/test.txt + - name: Test with pytest + run: | + pyver=$(python --version 2>&1 | awk '{print substr($2, 0, 3)}'); + case $pyver in + 2.7) tox -e "py${pyver//\.}-{std,coverage}";; + *) tox -e "py${pyver//\.}-std";; + esac diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7f3d1a8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: false -language: python -python: -# - 2.6 - - 2.7 - - 3.4 - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - 3.9 -install: - - pip install -r requirements/test.txt -script: - - pyver=$(python --version 2>&1 | awk '{print substr($2, 0, 3)}'); - case $pyver in - 2.7) tox -e "py${pyver//\.}-{std,coverage}";; - *) tox -e "py${pyver//\.}-std";; - esac -after_success: - - coveralls |