Skip to content

Commit

Permalink
Replace (defunct) Travis with Github Actions (#141)
Browse files Browse the repository at this point in the history
* Replace (defunct) Travis with Github Actions

* Drop testing 3.6 and 3.7 explicitly

Since 3.8 was already the default on Ubuntu 20.04. Also specify a specific version of pypy.

Todo: Also bump version number as this is technically breaking compatibility
  • Loading branch information
jelmervdl authored Sep 14, 2023
1 parent 7aa9abd commit 1b161ea
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python package

on: [push]

jobs:
test:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [
"3.8", "3.9", "3.10", "3.11",
"pypy3.9"
]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Test unit tests
run: |
python -m unittest discover -s sacremoses/test
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
],
install_requires = ['regex', 'click', 'joblib', 'tqdm'],
entry_points=console_scripts,
python_requires='>=3.8',
)

0 comments on commit 1b161ea

Please sign in to comment.