Migrate CI to GitHub Actions (#150)
This commit is contained in:
parent
35c19a2ae2
commit
27f70ed5ec
4 changed files with 39 additions and 26 deletions
37
.github/workflows/ci.yml
vendored
Normal file
37
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ hashFiles('.github/workflows/ci.yml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-pip
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install tox tox-gh-actions
|
||||||
|
- name: Lint
|
||||||
|
if: matrix.python-version == '3.10'
|
||||||
|
run: tox -e flake8
|
||||||
|
- name: Tests
|
||||||
|
run: tox
|
16
.travis.yml
16
.travis.yml
|
@ -1,16 +0,0 @@
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- "master"
|
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.7"
|
|
||||||
- "3.8"
|
|
||||||
- "3.9"
|
|
||||||
- "3.10"
|
|
||||||
cache: pip
|
|
||||||
install:
|
|
||||||
- pip install tox-travis
|
|
||||||
script:
|
|
||||||
- tox
|
|
||||||
services:
|
|
||||||
- redis-server
|
|
|
@ -125,8 +125,4 @@ Before you submit a pull request, check that it meets these guidelines:
|
||||||
2. If the pull request adds functionality, the docs should be updated. Put
|
2. If the pull request adds functionality, the docs should be updated. Put
|
||||||
your new functionality into a function with a docstring, and add the
|
your new functionality into a function with a docstring, and add the
|
||||||
feature to the list in README.rst.
|
feature to the list in README.rst.
|
||||||
3. The pull request should work for Python 2.6, 2.7 and 3.3+. Check
|
3. The pull request should work on all supported Python versions.
|
||||||
`Travis`_ and make sure that
|
|
||||||
the tests pass for all supported Python versions.
|
|
||||||
|
|
||||||
.. _Travis: https://travis-ci.org/pinterest/snappass/pull_requests
|
|
||||||
|
|
|
@ -2,16 +2,12 @@
|
||||||
SnapPass
|
SnapPass
|
||||||
========
|
========
|
||||||
|
|
||||||
|pypi| |build|
|
|pypi|
|
||||||
|
|
||||||
.. |pypi| image:: https://img.shields.io/pypi/v/snappass.svg
|
.. |pypi| image:: https://img.shields.io/pypi/v/snappass.svg
|
||||||
:target: https://pypi.python.org/pypi/snappass
|
:target: https://pypi.python.org/pypi/snappass
|
||||||
:alt: Latest version released on PyPI
|
:alt: Latest version released on PyPI
|
||||||
|
|
||||||
.. |build| image:: https://travis-ci.org/pinterest/snappass.svg
|
|
||||||
:target: https://travis-ci.org/pinterest/snappass
|
|
||||||
:alt: Build status
|
|
||||||
|
|
||||||
It's like SnapChat... for passwords.
|
It's like SnapChat... for passwords.
|
||||||
|
|
||||||
This is a web app that lets you share passwords securely.
|
This is a web app that lets you share passwords securely.
|
||||||
|
|
Loading…
Reference in a new issue