mirror of
https://github.com/mnaberez/py65.git
synced 2024-06-09 10:29:35 +00:00
Add workflow for GitHub Actions
This commit is contained in:
parent
eaa2398cec
commit
cdec5df4ef
25
.github/workflows/main.yml
vendored
Normal file
25
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Run all tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [2.7, 3.4, 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: Show Python version
|
||||
run: python -V
|
||||
|
||||
- name: Run the tests
|
||||
run: python setup.py test -q
|
22
.travis.yml
22
.travis.yml
|
@ -1,22 +0,0 @@
|
|||
language: python
|
||||
sudo: false
|
||||
matrix:
|
||||
include:
|
||||
- python: 2.7
|
||||
env: TOXENV=py27
|
||||
- python: 3.4
|
||||
env: TOXENV=py34
|
||||
- python: 3.5
|
||||
env: TOXENV=py35
|
||||
- python: 3.6
|
||||
env: TOXENV=py36
|
||||
- python: 3.7
|
||||
env: TOXENV=py37
|
||||
dist: xenial # required for Python >= 3.7
|
||||
- python: pypy
|
||||
env: TOXENV=pypy
|
||||
install:
|
||||
# tox is pinned for python 3.4 support
|
||||
- travis_retry pip install tox==3.14.0
|
||||
script:
|
||||
- travis_retry tox
|
|
@ -188,7 +188,7 @@ else:
|
|||
pass
|
||||
|
||||
# Convert linefeeds to carriage returns.
|
||||
if char != '' and ord(char) == 10:
|
||||
if len(char) and ord(char) == 10:
|
||||
char = '\r'
|
||||
return char
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user