Skip to content

Commit

Permalink
Migrate CI to GitHub Actions (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise authored May 17, 2022
1 parent 35c19a2 commit 27f70ed
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

6 changes: 1 addition & 5 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 2.6, 2.7 and 3.3+. Check
`Travis`_ and make sure that
the tests pass for all supported Python versions.

.. _Travis: https://travis-ci.org/pinterest/snappass/pull_requests
3. The pull request should work on all supported Python versions.
6 changes: 1 addition & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
SnapPass
========

|pypi| |build|
|pypi|

.. |pypi| image:: https://img.shields.io/pypi/v/snappass.svg
:target: https://pypi.python.org/pypi/snappass
: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.

This is a web app that lets you share passwords securely.
Expand Down

0 comments on commit 27f70ed

Please sign in to comment.