Skip to content

Commit 62e295f

Browse files
zhengjiang shaozhengjiang shao
authored andcommitted
Replace Travis CI with GitHub Actions, fix outdated badges
- Migrate CI from Travis CI (dead) to GitHub Actions - Test on Python 3.8, 3.9, 3.10, 3.11 - Remove dead landscape.io badge - Update Python badge: 2.7/3.5 → 3.8+ - Update PyPI badge: v0.8.12 → v0.9.0 - Update codecov badge format Co-Authored-By: deepseek-v4-pro
1 parent 7e37d97 commit 62e295f

4 files changed

Lines changed: 47 additions & 61 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.8', '3.9', '3.10', '3.11']
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
pip install numpy scipy matplotlib pyvista codecov
24+
pip install -e .
25+
- name: Run tests
26+
run: coverage run -m vaspy.tests.test_all
27+
- name: Upload coverage
28+
run: codecov

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

README.rst

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@
22
VASPy
33
=====
44

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

9-
.. image:: https://landscape.io/github/PytLab/VASPy/master/landscape.svg?style=flat
10-
:target: https://landscape.io/github/PytLab/VASPy/master
11-
:alt: Code Health
12-
139
.. image:: https://img.shields.io/codecov/c/github/PytLab/VASPy/master.svg
1410
:target: https://codecov.io/gh/PytLab/VASPy
11+
:alt: Coverage
1512

16-
.. image:: https://img.shields.io/badge/python-3.5, 2.7-green.svg
17-
:target: https://www.python.org/downloads/release/python-351/
18-
:alt: platform
13+
.. image:: https://img.shields.io/badge/python-3.8+-green.svg
14+
:target: https://www.python.org/downloads/
15+
:alt: Python
1916

20-
.. image:: https://img.shields.io/badge/pypi-v0.8.12-blue.svg
21-
:target: https://pypi.python.org/pypi/vaspy/
22-
:alt: versions
17+
.. image:: https://img.shields.io/badge/pypi-v0.9.0-blue.svg
18+
:target: https://pypi.org/project/vaspy/
19+
:alt: PyPI
2320

2421
Introduction
2522
------------

setup.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,21 @@
1515
VASPy
1616
=====
1717
18-
.. image:: https://travis-ci.org/PytLab/VASPy.svg?branch=master
19-
:target: https://travis-ci.org/PytLab/VASPy
18+
.. image:: https://github.com/PytLab/VASPy/actions/workflows/ci.yml/badge.svg
19+
:target: https://github.com/PytLab/VASPy/actions
2020
:alt: Build Status
2121
22-
.. image:: https://landscape.io/github/PytLab/VASPy/master/landscape.svg?style=flat
23-
:target: https://landscape.io/github/PytLab/VASPy/master
24-
:alt: Code Health
25-
26-
.. image:: https://codecov.io/gh/PytLab/VASPy/branch/master/graph/badge.svg
22+
.. image:: https://img.shields.io/codecov/c/github/PytLab/VASPy/master.svg
2723
:target: https://codecov.io/gh/PytLab/VASPy
24+
:alt: Coverage
2825
29-
.. image:: https://img.shields.io/badge/python-3.5, 2.7-green.svg
30-
:target: https://www.python.org/downloads/release/python-351/
31-
:alt: platform
26+
.. image:: https://img.shields.io/badge/python-3.8+-green.svg
27+
:target: https://www.python.org/downloads/
28+
:alt: Python
3229
33-
.. image:: https://img.shields.io/badge/pypi-v0.8.12-blue.svg
34-
:target: https://pypi.python.org/pypi/vaspy/
35-
:alt: versions
30+
.. image:: https://img.shields.io/badge/pypi-v0.9.0-blue.svg
31+
:target: https://pypi.org/project/vaspy/
32+
:alt: PyPI
3633
3734
3835
Introduction

0 commit comments

Comments
 (0)