diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..778d177 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,48 @@ + +name: tests + +on: [push] + +jobs: + test: + continue-on-error: ${{ matrix.python-version == '3.10' }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, macos-latest, ubuntu-latest] + python-version: [3.7, 3.8, 3.9, "3.10"] + + 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: | + pip install --upgrade pip + pip install https://github.com/dedupeio/dedupe/archive/refs/heads/pluggy-variables.zip + pip install -e . + - name: Test with pytest + run: | + pip install pytest + pytest + wheels: + needs: test + name: Build wheels + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Build sdist + run: | + pip install wheel setuptools build + python -m build + - name: Publish wheels to PyPI + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + pip install twine + twine upload dist/* + continue-on-error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 743350f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -branches: - only: - - master - - "/^v.*$/" -language: python -matrix: - include: - - os: linux - python: 2.7 - - os: linux - python: 3.5 - - os: linux - python: 3.6 - - os: osx - language: generic - before_install: - - brew update - - brew install python3 - - virtualenv env -p python3 - - source env/bin/activate -install: - - pip install --upgrade pip - - pip install --upgrade -r dev-requirements.txt - - pip install -e . -script: - - pytest -v tests -deploy: - provider: pypi - skip_cleanup: true - user: datamade.wheelbuilder - on: - tags: true - distributions: "sdist bdist_wheel" - password: - secure: Yz6Fc8jkycjIhhPTwDhs0R5tMsf3+ajncPg7ApBAK1Wlc5KcF5cA2Od2dDb5ES9Jpv1GajczAc8CkBDLKuMGqet6xWMcQTHt+lxlomyLk0QSoipcoyVVosntY6nFPv43OqojxPLcUclqVzbMyuzyNMZlw9bgFFZM2iu5v32ivWKcbocB7e9KiNVAInSrrQUuLvlbiENpWd+nDi5lWuLEKgQAO7Oc57yj7KnCHMSHXFup6I77riyryCLTDCFDFRZFczXQrh3SyJT4FKBPQ++mt7vJX1INJxPnRQc41aN9rn8pvBf9YzmAd3/FL+6XcJ8523nYNzQLPGsRfVHm5rT38GwwXrehKPwjKphku8pl3dU3/myV8olGtWaoS23TMQW5ABI4ZwkuFya2dmKsqAdZmsP2ldSicPl81EMjRjWY+YtCrTkwKQX3qWo9RJ2JsVTEX+NuSp2ezBZEVIrmrXf26l16kiAhwZvYkPkFzQBbLy5aBnfVb4iWQiRTRtlZ81x9jFnVoKMbumJF9lxETnSmhIbw9J20jCBLSFjNWIPPo9bTjGlE6RmIxUc4jguolxRgtgrzM4JBf7zH8yL9AAdB68sOFY0PhINx28Fdx5qTvW/FYtGYgOfORjABnE145g5dyBQeeyaSIA9WP6uihNiyT09ZaCaKl8BSbKfkLnLTlNg= -