Skip to content

Commit

Permalink
Change CI provider
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Sep 10, 2021
1 parent 4c9c884 commit 2c33bd3
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 34 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deployment

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install pip -U
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Tests

on:
push:
pull_request:
schedule:
- cron: "0 6 * * 1"

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pip -U
pip install -e . --ignore-requires-python
- name: Install test dependencies
run: |
pip install coverage
pip install -r requirements.txt
- name: Execute tests
run: coverage run --source sismic -m pytest tests
- name: Execute documentation
run : |
cd docs
make doctest
cd ..
cd docs/examples/microwave/
python -m unittest
cd ../../..
- name: Upload coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --service=github
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Sismic for Python
=================

.. image:: https://travis-ci.com/AlexandreDecan/sismic.svg?branch=master
:target: https://travis-ci.com/AlexandreDecan/sismic
.. image:: https://github.com/AlexandreDecan/sismic/actions/workflows/test.yaml/badge.svg?branch=master
:target: https://github.com/AlexandreDecan/sismic/actions/workflows/test.yaml
.. image:: https://coveralls.io/repos/AlexandreDecan/sismic/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/AlexandreDecan/sismic?branch=master
.. image:: https://badge.fury.io/py/sismic.svg
Expand Down
7 changes: 4 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
Sismic user manual
==================

.. image:: https://travis-ci.com/AlexandreDecan/sismic.svg?branch=master
:target: https://travis-ci.com/AlexandreDecan/sismic
.. image:: https://github.com/AlexandreDecan/sismic/actions/workflows/test.yaml/badge.svg?branch=master
:target: https://github.com/AlexandreDecan/sismic/actions/workflows/test.yaml
.. image:: https://coveralls.io/repos/AlexandreDecan/sismic/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/AlexandreDecan/sismic?branch=master
.. image:: https://badge.fury.io/py/sismic.svg
:target: https://pypi.python.org/pypi/sismic
:target: https://pypi.org/project/sismic/
.. image:: https://readthedocs.org/projects/sismic/badge/?version=latest
:target: https://sismic.readthedocs.io/


About
-----

Expand Down

0 comments on commit 2c33bd3

Please sign in to comment.