Skip to content

Commit

Permalink
Replace (defunct) Travis with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmervdl committed Sep 14, 2023
1 parent 4203e7d commit 1dda701
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python package

on: [push]

jobs:
build:

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

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 with pytest
run: |
python -m unittest discover -s sacremoses/test
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit 1dda701

Please sign in to comment.