Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CI to GitHub actions #413

Merged
merged 1 commit into from Aug 25, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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