Skip to content

Commit

Permalink
Github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jan 28, 2022
1 parent d30e7e1 commit 72beedb
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 68 deletions.
17 changes: 0 additions & 17 deletions .appveyor.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Python package

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: |
python -m unittest
make test-c
release:
needs: [test]
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags')

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
git clean -dfx
python -m build --sdist --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
password: ${{ secrets.pypi_password }}
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
|buildstatus|_
|appveyor|_
|coverage|_
|codecov|_
|nala|_

About
Expand Down Expand Up @@ -551,18 +547,6 @@ proto-file.
See `address_book.h`_ and `address_book.c`_ for the contents of the
generated files.

.. |buildstatus| image:: https://travis-ci.org/eerimoq/pbtools.svg?branch=master
.. _buildstatus: https://travis-ci.org/eerimoq/pbtools

.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/eerimoq/pbtools?svg=true
.. _appveyor: https://ci.appveyor.com/project/eerimoq/pbtools/branch/master

.. |coverage| image:: https://coveralls.io/repos/github/eerimoq/pbtools/badge.svg?branch=master
.. _coverage: https://coveralls.io/github/eerimoq/pbtools

.. |codecov| image:: https://codecov.io/gh/eerimoq/pbtools/branch/master/graph/badge.svg
.. _codecov: https://codecov.io/gh/eerimoq/pbtools

.. |nala| image:: https://img.shields.io/badge/nala-test-blue.svg
.. _nala: https://github.com/eerimoq/nala

Expand Down
3 changes: 0 additions & 3 deletions codecov.yml

This file was deleted.

0 comments on commit 72beedb

Please sign in to comment.