From b8dd3c721a3e73a000f9998f492e73cf5085593c Mon Sep 17 00:00:00 2001 From: Niklas Hauser Date: Sun, 11 Jul 2021 00:32:05 +0200 Subject: [PATCH] [ci] Switch to GitHub Actions --- .github/workflows/deloy.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ .travis.yml | 17 ----------------- 3 files changed, 54 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/deloy.yml create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/deloy.yml b/.github/workflows/deloy.yml new file mode 100644 index 0000000..b7535a9 --- /dev/null +++ b/.github/workflows/deloy.yml @@ -0,0 +1,29 @@ +name: Upload PyPi Package + +on: + push: + branches: + - develop + - develop-** + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload --skip-existing dist/* diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a94202f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Python tests + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + + 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: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c107638..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python -python: -- '3.5' -- '3.6' -- '3.7' -- '3.8' -install: pip install -r requirements.txt -script: make test -deploy: - provider: pypi - distributions: "sdist bdist_wheel" - skip_existing: true - user: salkinium - password: - secure: gJ3UPzn/Tm8WfUBb85d9QfbO6c1XZ2CxoPEjw/Ct221OEmMFnzyfIj4cEQp8oWE/cTp1sZmaFa1We+QjqLbcWIg2dKMD8IZyffSu1V/Rkf5uojkJ6m0uMMWg95YhHEOgBYAtSGoJLFRrBgu8JPRBMHfiWV5GiuFPz2WsIVfmup5gXXH8fEowDPGUEOZFbIUl3nvlWbCYQHbla/wk2NyXdrk/AkOWZfa8U5ZDbm6BZ9I6tGfJn7gS3YXoFrRGTdymOvBaKZfn0TqKtcfpNU6h0VABGUpXHeE2IikUl1RTCX7PbJHd9nrhabfALX7yqil3uyyyCxQW1MyBjzb0PVW4ihvpjjQgjUou6YLZsAga7CaA4cmLFPJwDAjifWWd+X1lP6ueMWifOZwL3SQNP0ou0kj0sLmzoS4QGT4gE3HCPc+B8YC/4sCHEcpTLEZsDDZ92OU+zETncaghZDnfjSFXHzbRbDj32qmhUx6qaqHy62w1Ot4Ij5D1OtsQEH+QY++YuYix42ukyR7SCQHT3pcHdv8omEvMMEZs10ikSc9p/T2GmmKy+7Pv8nFom/kMbUg7fgKSY/qvSQ+KtKmKZWCXb8y/Rm25RIyzxky8oJ2Sq0vdzc9PnyrR36o3jRyxx5BQ0uWgu1w4SHiROMXXuLm2rnIpezrM71OZhIWhuDhRF6g= - on: - branch: develop