diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..408126f0c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,53 @@ +name: Build +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - python-version: 3.8 + env: + TOXENV: flake8 + - python-version: 3.5 + env: + TOXENV: py + - python-version: 3.6 + env: + TOXENV: py + - python-version: 3.7 + env: + TOXENV: py + - python-version: 3.8 + env: + TOXENV: py + - python-version: 3.8 + env: + TOXENV: latest + - python-version: 3.9 + env: + TOXENV: py + - python-version: 3.9 + env: + TOXENV: latest + 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 language-pack-fr + run: sudo apt-get install language-pack-fr + - name: Install python dependencies + run: pip install tox + - name: tox + run: tox -e py + - uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 57f71fcb4..000000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Config file for automatic testing at travis-ci.org - -language: python - -matrix: - include: - - python: 3.8 - env: TOXENV=flake8 - - python: 3.5 - env: TOXENV=py - - python: 3.6 - env: TOXENV=py - - python: 3.7 - env: TOXENV=py - - python: 3.8 - env: TOXENV=py PYPI_RELEASE_JOB=true - - python: 3.8 - env: TOXENV=latest - - python: 3.9 - env: TOXENV=latest - -install: pip install -U wheel tox codecov - -cache: pip - -# command to run tests, e.g. python setup.py test -script: tox - -addons: - apt: - packages: - - language-pack-fr - -after_success: - - codecov - -deploy: - provider: pypi - distributions: sdist bdist_wheel - user: scrapinghub - password: - secure: "Vs2Z69YTFzQWVkos7IvP4xk0RAQ35dzVXP+EAmzMkqi9qToTa7jdeF8deY18r3l8093jaJ/ct6NzjNiZ6ryWl1yKBwYoW+jaXjKGVXMFSQdqXiDreu516rqrOiRfZVHy+G9TabjhVrIW2npkxuOP7d0HONOZnNtCn6QrxQwEBzw=" - on: - tags: true - repo: scrapinghub/dateparser - condition: "$PYPI_RELEASE_JOB == true"