diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bc815d8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + pull_request: + +jobs: + # Test the Python package itself + test_python: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - 3.6 + - 3.7 + - 3.8 + - 3.9 + + 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 Python dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools pytest + + - name: Install package + run: | + pip install . + + - name: Test with pytest + run: | + pytest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dda56e1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -python: - - '3.6' - -# Whitelist of branches to build -branches: - only: - - master - -# Avoid email notifications on every build -notifications: - email: false - -# Installation command -install: python setup.py install - -# Run pytest -script: python -m pytest -v diff --git a/README.md b/README.md index ec9a242..3ef16e3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # pyorg +[![CI](https://github.com/jlumpe/pyorg/actions/workflows/ci.yml/badge.svg)](https://github.com/jlumpe/pyorg/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/pyorg/badge/?version=latest)](https://pyorg.readthedocs.io/en/latest/?badge=latest) Python library for working with Emacs org mode.