Skip to content

Commit

Permalink
Move CI to GitHub Actions (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Apr 2, 2020
1 parent a8f95d1 commit 1023e12
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 279 deletions.
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

0 comments on commit 1023e12

Please sign in to comment.