From 43c0d2d80702ebbf1dd1efaeeec0161bbeeb1c9c Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Sat, 18 Sep 2021 00:09:44 -0700 Subject: [PATCH] replace travis-ci with github-ci --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e3fac03 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [2.7, 3.6, 3.7, 3.8, 3.9] + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # configure python + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + # install deps + - name: Install dependencies for ${{ matrix.os }} Python ${{ matrix.python-version }} + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install scipy + + # find and run all unit tests + - name: Run unit tests + run: python -m unittest discover tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d4978de..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python -python: -- '2.7' -- '3.6' -install: -- pip install numpy svgwrite scipy -script: -- python -m unittest discover test -deploy: - provider: pypi - username: __token__ - password: - secure: DaP6S0yj9KlXICtYCWkd54f+yulPYMqr01giOFs2xv5kvMHF1GV160XvYdeLDfwLwAsjKr7438vhgeik99T9iWVb9SYQQsOj8zx+uKcNvNxY/+cHxN9joVOMbhowiqELtKbyNSf1fzax8CGv5+L6k7HfiFV6Zxy4r/4a7JJnavqlsyFn2fixD5FmY+gXjMlnWAer3Q9/1GCWhoUEkON9TRVUcZkYvvBGG16A3m/5o9brCiilaNH5lMiHjOQfbEjxYRgIy6wLGOT9u7EwYAhbnzKhqiaR2jQ5ZxFn52CVoy3r8+T9zvVtToDcjdn9bI+CEFiU37FR1sdJhANFozsoVT3LZid97e7BuMa5+UfFZWZIU7SOcPkzOYxEGwrwqrBWfSeQ3/R76fCcVyy4mNh7YJ5q/89y+NbIpWl6LxVJIwkfix9SUv0z1w4jFzOk5anzrCAJKtJxVFZSUC70ERPaDRK3t9jrZZNS9LIh7wcWGHuGyD4h/8gZr9y3STmNImDq1KdJnldgnOefIS2OXwM5IRkxKvtGeWgn123mp/1XoKDGX8ZhoWp0W0y1A9nZtOkWFjTUjmmj8SeD2R98KBQACsTUqTg3jtZR5dh3VHIPvUc2GeMXQVTZJspi9nyDhJbTLluMk+694S1nRb6Qv0UgIcz651gnv4s8qa6lGXKxEEg= - on: - tags: true