Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: tests

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

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
env:
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install mdbenchmark
run: poetry install --extras docs
- name: Check reformat
run: poetry run make reformat-check
- name: Check style
run: poetry run make flake8
- name: Check sort
run: poetry run make isort-check
- name: Check reStructuredText
run: poetry run make rst-lint
- name: Unit-tests
run: poetry run pytest -v --cov=mdbenchmark --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
env_vars: PYTHON
fail_ci_if_error: true
- name: Build distribution
run: poetry build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: dists.${{ matrix.python-version }}
path: dist/
- name: Make docs
run: |
cd docs
poetry run make build

test-build:

runs-on: ubuntu-latest
needs: test
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]

steps:
- name: Enable pip-caching
run: touch requirements.txt
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' #doesn't seem to work
- name: Update pip
run: pip install --upgrade pip
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: dists.${{ matrix.python-version }}
path: dist
- name: Install mdbenchmark
run: pip install dist/*.tar.gz
- name: Check run
run: mdbenchmark

77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .travis/before_script.sh

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Benchmark molecular dynamics simulations
.. image:: https://img.shields.io/pypi/l/mdbenchmark.svg
:target: https://pypi.python.org/pypi/mdbenchmark

.. image:: https://travis-ci.org/bio-phys/MDBenchmark.svg?branch=develop
:target: https://travis-ci.org/bio-phys/MDBenchmark
.. image:: https://github.com/bio-phys/MDBenchmark/actions/workflows/tests.yml/badge.svg?branch=develop
:target: https://github.com/bio-phys/MDBenchmark/actions/workflows/tests.yml

.. image:: https://readthedocs.org/projects/mdbenchmark/badge/?version=latest&style=flat
:target: https://mdbenchmark.readthedocs.io/en/latest/
Expand Down
Loading