Skip to content

Commit

Permalink
Merge pull request #413 from jdufresne/gha
Browse files Browse the repository at this point in the history
Move CI to GitHub actions
  • Loading branch information
boxed committed Aug 25, 2021
2 parents 92624e4 + 29906e8 commit 8994558
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 21 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yaml
@@ -0,0 +1,48 @@
name: CI

on:
- pull_request
- push

jobs:
mypy:
name: mypy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v2

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e mypy

tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- pypy3

steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e py
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile
Expand Up @@ -8,9 +8,6 @@ test:
rm -f .coverage
pytest

travis:
pytest --cov

tag:
python create_tag.py

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -3,8 +3,8 @@ FreezeGun: Let your Python tests travel through time

.. image:: https://img.shields.io/pypi/v/freezegun.svg
:target: https://pypi.python.org/pypi/freezegun/
.. image:: https://secure.travis-ci.org/spulec/freezegun.svg?branch=master
:target: https://travis-ci.org/spulec/freezegun
.. image:: https://github.com/spulec/freezegun/workflows/CI/badge.svg
:target: https://github.com/spulec/freezegun/actions
.. image:: https://coveralls.io/repos/spulec/freezegun/badge.svg?branch=master
:target: https://coveralls.io/r/spulec/freezegun

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -13,6 +13,7 @@ classifiers =
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -4,13 +4,13 @@
# and then run "tox" from this directory.

[tox]
envlist = py36, py37, py38, pypy3, py{38}-mypy
envlist = py36, py37, py38, py39, pypy3, mypy

[testenv]
commands = pytest --cov {posargs}
deps = -rrequirements.txt

[testenv:py38-mypy]
[testenv:mypy]
deps =
mypy == 0.902
mypy
commands = mypy freezegun

0 comments on commit 8994558

Please sign in to comment.