diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 00000000..5d05225d --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,39 @@ +name: Python package + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + name: Test on python ${{ matrix.python-version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 4 + matrix: + python-version: [2.7, 3.6, 3.7] + os: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install urllib3 certifi pytz pyflakes faker nose + - name: Test with nosetests + run: | + pyflakes minio/*.py || true + python setup.py install + python setup.py nosetests + - name: Test with functional tests + env: + MINT_MODE: full + run: python tests/functional/tests.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 469e9c29..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -dist: xenial # required for Python >= 3.7 -language: python - -python: -- '2.7' -- '3.4' -- '3.5' -- '3.6' -- '3.7' - -os: -- linux - -env: -- ARCH=x86_64 -- ARCH=i686 - -install: -- pip install urllib3 certifi pytz pyflakes faker nose - -script: -- pyflakes minio/*.py || true -- python setup.py install -- python setup.py nosetests -- MINT_MODE=full python tests/functional/tests.py diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index c301941e..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,33 +0,0 @@ -environment: - matrix: - - PYTHON: "C:\\Python27" - - PYTHON: "C:\\Python35" - - PYTHON: "C:\\Python27-x64" - - PYTHON: "C:\\Python35-x64" - -install: - # We need wheel installed to build wheels - - "%PYTHON%\\python.exe -m pip install wheel faker nose mock" - - "%PYTHON%\\python.exe setup.py install" - -build: off - -test_script: - # Note that you must use the environment variable %PYTHON% to refer to - # the interpreter you're using - Appveyor does not do anything special - # to put the Python evrsion you want to use on PATH. - - "%PYTHON%\\python.exe setup.py nosetests" - - "%PYTHON%\\python.exe tests/functional/tests.py" - -after_test: - # This step builds your wheels. - - "%PYTHON%\\python.exe setup.py bdist_wheel" - -artifacts: - # bdist_wheel puts your built wheel in the dist directory - - path: dist\* - -#on_success: -# You can use this step to upload your artifacts to a public website. -# See Appveyor's documentation for more details. Or you can simply -# access your wheels from the Appveyor "artifacts" tab for your build.