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/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]" wheel
- name: Fetch web assets
run: inv assets
- name: Publish
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
65 changes: 65 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Tests
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy2, pypy3]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Test with inv
run: inv cover qa
- name: Coveralls
run: |
pip install coveralls
coveralls --rcfile=coverage.rc
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
bench:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Checkout ${{ github.base_ref }}
uses: actions/checkout@v2
with:
ref: ${{ github.base_ref}}
path: base
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v2
with:
ref: ${{ github.ref}}
path: ref
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -e "base[dev]"
- name: Install ci dependencies for ${{ github.base_ref }}
run: pip install -e "base[ci]"
- name: Benchmarks for ${{ github.base_ref }}
run: |
cd base
inv benchmark --max-time 4 --save
mv .benchmarks ../ref/
- name: Install ci dependencies for ${{ github.ref }}
run: pip install -e "ref[ci]"
- name: Benchmarks for ${{ github.ref }}
run: |
cd ref
inv benchmark --max-time 4 --compare
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Release process
---------------

The new releases are pushed on `Pypi.org <https://pypi.org/>`_ automatically
from `travis-ci <https://travis-ci.org/>`_ when we add a new tag (unless the
from `GitHub Actions <https://github.com/python-restx/flask-restx/actions?query=workflow%3ARelease>`_ when we add a new tag (unless the
tests are failing).

Updating Copyright
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Flask RESTX
===========

.. image:: https://secure.travis-ci.org/python-restx/flask-restx.svg?branch=master
:target: https://travis-ci.org/python-restx/flask-restx?branch=master
:alt: Build status
.. image:: https://github.com/python-restx/flask-restx/workflows/Tests/badge.svg?branch=master&event=push
:target: https://github.com/python-restx/flask-restx/actions?query=workflow%3ATests
:alt: Tests status
.. image:: https://coveralls.io/repos/github/python-restx/flask-restx/badge.svg?branch=master
:target: https://coveralls.io/github/python-restx/flask-restx?branch=master
:alt: Code coverage
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def pip(filename):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
Expand Down
63 changes: 0 additions & 63 deletions travis-bench-after-success.sh

This file was deleted.