Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install numpy scipy matplotlib pyvista codecov
pip install -e .
- name: Run tests
run: coverage run -m vaspy.tests.test_all
- name: Upload coverage
run: codecov
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tools
run: pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

21 changes: 9 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
VASPy
=====

.. image:: https://travis-ci.org/PytLab/VASPy.svg?branch=master
:target: https://travis-ci.org/PytLab/VASPy
.. image:: https://github.com/PytLab/VASPy/actions/workflows/ci.yml/badge.svg
:target: https://github.com/PytLab/VASPy/actions
:alt: Build Status

.. image:: https://landscape.io/github/PytLab/VASPy/master/landscape.svg?style=flat
:target: https://landscape.io/github/PytLab/VASPy/master
:alt: Code Health

.. image:: https://img.shields.io/codecov/c/github/PytLab/VASPy/master.svg
:target: https://codecov.io/gh/PytLab/VASPy
:alt: Coverage

.. image:: https://img.shields.io/badge/python-3.5, 2.7-green.svg
:target: https://www.python.org/downloads/release/python-351/
:alt: platform
.. image:: https://img.shields.io/badge/python-3.8+-green.svg
:target: https://www.python.org/downloads/
:alt: Python

.. image:: https://img.shields.io/badge/pypi-v0.8.12-blue.svg
:target: https://pypi.python.org/pypi/vaspy/
:alt: versions
.. image:: https://img.shields.io/badge/pypi-v0.9.0-blue.svg
:target: https://pypi.org/project/vaspy/
:alt: PyPI

Introduction
------------
Expand Down
23 changes: 10 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,21 @@
VASPy
=====

.. image:: https://travis-ci.org/PytLab/VASPy.svg?branch=master
:target: https://travis-ci.org/PytLab/VASPy
.. image:: https://github.com/PytLab/VASPy/actions/workflows/ci.yml/badge.svg
:target: https://github.com/PytLab/VASPy/actions
:alt: Build Status

.. image:: https://landscape.io/github/PytLab/VASPy/master/landscape.svg?style=flat
:target: https://landscape.io/github/PytLab/VASPy/master
:alt: Code Health

.. image:: https://codecov.io/gh/PytLab/VASPy/branch/master/graph/badge.svg
.. image:: https://img.shields.io/codecov/c/github/PytLab/VASPy/master.svg
:target: https://codecov.io/gh/PytLab/VASPy
:alt: Coverage

.. image:: https://img.shields.io/badge/python-3.5, 2.7-green.svg
:target: https://www.python.org/downloads/release/python-351/
:alt: platform
.. image:: https://img.shields.io/badge/python-3.8+-green.svg
:target: https://www.python.org/downloads/
:alt: Python

.. image:: https://img.shields.io/badge/pypi-v0.8.12-blue.svg
:target: https://pypi.python.org/pypi/vaspy/
:alt: versions
.. image:: https://img.shields.io/badge/pypi-v0.9.0-blue.svg
:target: https://pypi.org/project/vaspy/
:alt: PyPI


Introduction
Expand Down
Loading