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 #241

Merged
merged 1 commit into from Apr 2, 2020
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
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-18.04

strategy:
matrix:
python-version:
- 3.5
- 3.6
- 3.7
- 3.8

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv
- name: Install dependencies
run: python -m pip install --upgrade tox tox-gh-actions
- name: Run tox targets for ${{ matrix.python-version }}
run: python -m tox
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -2,8 +2,8 @@
pytest-randomly
===============

.. image:: https://img.shields.io/travis/pytest-dev/pytest-randomly.svg
:target: https://travis-ci.org/pytest-dev/pytest-randomly
.. image:: https://github.com/pytest-dev/pytest-randomly/workflows/CI/badge.svg?branch=master
:target: https://github.com/pytest-dev/pytest-randomly/actions?workflow=CI

.. image:: https://img.shields.io/pypi/v/pytest-randomly.svg
:target: https://pypi.python.org/pypi/pytest-randomly
Expand Down
3 changes: 0 additions & 3 deletions requirements/compile.py
Expand Up @@ -21,6 +21,3 @@
subprocess.run(
["python3.8", *common_args, "-o", "py38.txt"], check=True,
)
subprocess.run(
["python3.9", *common_args, "-o", "py39.txt"], check=True,
)
250 changes: 0 additions & 250 deletions requirements/py39.txt

This file was deleted.

13 changes: 8 additions & 5 deletions tox.ini
@@ -1,10 +1,16 @@
[tox]
envlist =
py{35,36,37,38,39}
py{35,36,37,38}
py38-codestyle

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38, py38-codestyle

[testenv]
install_command = python -m pip install --no-deps {opts} {packages}
commands = pytest -p no:randomly {posargs}

[testenv:py35]
Expand All @@ -19,9 +25,6 @@ deps = -rrequirements/py37.txt
[testenv:py38]
deps = -rrequirements/py38.txt

[testenv:py39]
deps = -rrequirements/py39.txt

[testenv:py38-codestyle]
deps = -rrequirements/py38.txt
commands =
Expand Down