Skip to content

Commit

Permalink
test via GitHub actions, not Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom committed Feb 6, 2024
1 parent c1525b5 commit 7d5a310
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v4

- name: install python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: install package and dependencies
run: pip install -e . && pip install -r test_requirements.txt

- name: lint code with ruff
run: ruff check .

- name: check code format with black
run: black --check .

- name: test code with `pytest`
run: pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
_*

!.gitignore
!.github
!.travis.yml
!.flake8
!.nojekyll
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on `Keep a Changelog <https://keepachangelog.com>`_.
- Lint with ``ruff`` rather than ``flake8``
- Add ``pyarrow`` as dependency as required by ``pandas``.
- Tweaks to work with new versions of ``pandas`` and ``plotnine``
- Test with GitHub Actions rather than Travis CI

1.4.3
-----
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ dms_variants
.. image:: https://img.shields.io/pypi/v/dms_variants.svg
:target: https://pypi.python.org/pypi/dms_variants

.. image:: https://app.travis-ci.com/jbloomlab/dms_variants.svg
:target: https://app.travis-ci.com/github/jbloomlab/dms_variants
.. image:: https://github.com/jbloomlab/dms_variants/actions/workflows/test.yaml/badge.svg
:target: https://github.com/jbloomlab/dms_variants/actions/workflows/test.yaml

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
Expand Down

0 comments on commit 7d5a310

Please sign in to comment.