|
|
0d485a0 |
From 487970614a469895da3ec3c67663e7c69fe1de2d Mon Sep 17 00:00:00 2001
|
|
|
0d485a0 |
From: =?UTF-8?q?Tadej=20Jane=C5=BE?= <tadej.j@nez.si>
|
|
|
0d485a0 |
Date: Thu, 26 Aug 2021 11:11:09 +0200
|
|
|
0d485a0 |
Subject: [PATCH 05/15] Replace Travis CI and AppVeyor with GitHub Actions
|
|
|
0d485a0 |
|
|
|
0d485a0 |
---
|
|
|
0d485a0 |
.github/workflows/ci-tests.yml | 39 +++++++++++++++++++
|
|
|
0d485a0 |
.travis.yml | 70 ----------------------------------
|
|
|
0d485a0 |
README.md | 8 ++--
|
|
|
0d485a0 |
appveyor.yml | 7 ----
|
|
|
0d485a0 |
tox.ini | 17 ++++++++-
|
|
|
0d485a0 |
5 files changed, 60 insertions(+), 81 deletions(-)
|
|
|
0d485a0 |
create mode 100644 .github/workflows/ci-tests.yml
|
|
|
0d485a0 |
delete mode 100644 .travis.yml
|
|
|
0d485a0 |
delete mode 100644 appveyor.yml
|
|
|
0d485a0 |
|
|
|
0d485a0 |
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
|
|
|
0d485a0 |
new file mode 100644
|
|
|
0d485a0 |
index 0000000..51b5623
|
|
|
0d485a0 |
--- /dev/null
|
|
|
0d485a0 |
+++ b/.github/workflows/ci-tests.yml
|
|
|
0d485a0 |
@@ -0,0 +1,39 @@
|
|
|
0d485a0 |
+# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
|
|
|
0d485a0 |
+name: ci-tests
|
|
|
0d485a0 |
+
|
|
|
0d485a0 |
+# Trigger the workflow when:
|
|
|
0d485a0 |
+on:
|
|
|
0d485a0 |
+ # A push occurs to one of the matched branches.
|
|
|
0d485a0 |
+ push:
|
|
|
0d485a0 |
+ branches:
|
|
|
0d485a0 |
+ - master
|
|
|
0d485a0 |
+ # Or when a pull request event occurs for a pull request against one of the
|
|
|
0d485a0 |
+ # matched branches.
|
|
|
0d485a0 |
+ pull_request:
|
|
|
0d485a0 |
+ branches:
|
|
|
0d485a0 |
+ - master
|
|
|
0d485a0 |
+
|
|
|
0d485a0 |
+jobs:
|
|
|
0d485a0 |
+ tests:
|
|
|
0d485a0 |
+ # NOTE: This name appears in GitHub's Checks API.
|
|
|
0d485a0 |
+ name: tests
|
|
|
0d485a0 |
+ runs-on: ${{ matrix.platform }}
|
|
|
0d485a0 |
+ strategy:
|
|
|
0d485a0 |
+ matrix:
|
|
|
0d485a0 |
+ platform: [ubuntu-latest, windows-latest]
|
|
|
0d485a0 |
+ python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9]
|
|
|
0d485a0 |
+ steps:
|
|
|
0d485a0 |
+ - name: Checkout code
|
|
|
0d485a0 |
+ uses: actions/checkout@v2
|
|
|
0d485a0 |
+ - name: Set up Python ${{ matrix.python-version }}
|
|
|
0d485a0 |
+ uses: actions/setup-python@v2
|
|
|
0d485a0 |
+ with:
|
|
|
0d485a0 |
+ python-version: ${{ matrix.python-version }}
|
|
|
0d485a0 |
+ - name: Install dependencies
|
|
|
0d485a0 |
+ run: |
|
|
|
0d485a0 |
+ python -m pip install --upgrade pip
|
|
|
0d485a0 |
+ pip install tox tox-gh-actions
|
|
|
0d485a0 |
+ - name: Test with Tox
|
|
|
0d485a0 |
+ run: tox
|
|
|
0d485a0 |
+ env:
|
|
|
0d485a0 |
+ PLATFORM: ${{ matrix.platform }}
|
|
|
0d485a0 |
diff --git a/.travis.yml b/.travis.yml
|
|
|
0d485a0 |
deleted file mode 100644
|
|
|
0d485a0 |
index 98dbcf9..0000000
|
|
|
0d485a0 |
--- a/.travis.yml
|
|
|
0d485a0 |
+++ /dev/null
|
|
|
0d485a0 |
@@ -1,70 +0,0 @@
|
|
|
0d485a0 |
-matrix:
|
|
|
0d485a0 |
- fast_finish: true
|
|
|
0d485a0 |
- include:
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- sudo: false
|
|
|
0d485a0 |
- python: "2.7"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e .[pythonz] --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- sudo: false
|
|
|
0d485a0 |
- python: "3.4"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e . --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/ --ignore=tests/test_install.py
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- sudo: false
|
|
|
0d485a0 |
- python: "3.5"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e . --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/ --ignore=tests/test_install.py
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- sudo: false
|
|
|
0d485a0 |
- python: "3.6"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e .[pythonz] --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- dist: xenial
|
|
|
0d485a0 |
- sudo: required
|
|
|
0d485a0 |
- python: "3.7"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e . --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/ --ignore=tests/test_install.py
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- dist: xenial
|
|
|
0d485a0 |
- sudo: required
|
|
|
0d485a0 |
- python: "3.8"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e . --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/ --ignore=tests/test_install.py
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- dist: xenial
|
|
|
0d485a0 |
- sudo: required
|
|
|
0d485a0 |
- python: "3.9"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e . --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/ --ignore=tests/test_install.p
|
|
|
0d485a0 |
- - language: python
|
|
|
0d485a0 |
- sudo: false
|
|
|
0d485a0 |
- python: "pypy"
|
|
|
0d485a0 |
- install:
|
|
|
0d485a0 |
- - pip install -e .[pythonz] --upgrade
|
|
|
0d485a0 |
- - pip install pytest
|
|
|
0d485a0 |
- script: py.test -rws tests/
|
|
|
0d485a0 |
- - language: nix
|
|
|
0d485a0 |
- script: nix build -v --arg nixpkgs "import (fetchTarball ''https://github.com/NixOS/nixpkgs-channels/archive/$CHANNEL_HASH.tar.gz'') {}"
|
|
|
0d485a0 |
- env: CHANNEL_HASH=07b42ccf2de451342982b550657636d891c4ba35
|
|
|
0d485a0 |
- - language: nix
|
|
|
0d485a0 |
- script: nix build -v --arg nixpkgs "import (fetchTarball ''https://github.com/NixOS/nixpkgs-channels/archive/$CHANNEL_HASH.tar.gz'') {}"
|
|
|
0d485a0 |
- env: CHANNEL_HASH=nixos-unstable
|
|
|
0d485a0 |
- allow_failures:
|
|
|
0d485a0 |
- - env: CHANNEL_HASH=nixos-unstable
|
|
|
0d485a0 |
diff --git a/README.md b/README.md
|
|
|
0d485a0 |
index 35368f6..cce7064 100644
|
|
|
0d485a0 |
--- a/README.md
|
|
|
0d485a0 |
+++ b/README.md
|
|
|
0d485a0 |
@@ -2,10 +2,12 @@ Pew - Python Env Wrapper
|
|
|
0d485a0 |
========================
|
|
|
0d485a0 |
|
|
|
0d485a0 |
[![PyPi version](http://img.shields.io/pypi/v/pew.svg)](https://pypi.python.org/pypi/pew)
|
|
|
0d485a0 |
-[![Build Status](https://travis-ci.org/berdario/pew.svg)](https://travis-ci.org/berdario/pew)
|
|
|
0d485a0 |
-[![Build status](https://ci.appveyor.com/api/projects/status/xxe096txh1fuqfag/branch/master?svg=true)](https://ci.appveyor.com/project/berdario/pew/branch/master)
|
|
|
0d485a0 |
+[![CI test status][github-ci-tests-badge]][github-ci-tests-link]
|
|
|
0d485a0 |
[![PyPi](https://img.shields.io/pypi/format/pew.svg)](https://pypi.python.org/pypi/pew/)
|
|
|
0d485a0 |
|
|
|
0d485a0 |
+[github-ci-tests-badge]: https://github.com/berdario/pew/workflows/ci-tests/badge.svg
|
|
|
0d485a0 |
+[github-ci-tests-link]: https://github.com/berdario/pew/actions?query=workflow:ci-tests+branch:master
|
|
|
0d485a0 |
+
|
|
|
0d485a0 |
Python Env Wrapper is a set of commands to manage multiple [virtual environments](http://pypi.python.org/pypi/virtualenv). Pew can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location.
|
|
|
0d485a0 |
|
|
|
0d485a0 |
Virtualenvs makes it easier to work on more than one project at a time without introducing conflicts in their dependencies.
|
|
|
0d485a0 |
@@ -370,7 +372,7 @@ Running Tests
|
|
|
0d485a0 |
|
|
|
0d485a0 |
The test suite for `pew` uses [tox](http://codespeak.net/tox). Most tests are actually integration tests that will fork shells, create virtualenvs and in some cases even download python packages from Pypi. The whole test suite takes around 1 minute to run on a single interpreter.
|
|
|
0d485a0 |
|
|
|
0d485a0 |
-With every commit and pull request, the test suite is run over all supported interpreters on travis-ci (for unix-like) and appveyor (for windows).
|
|
|
0d485a0 |
+With every commit and pull request, the test suite is run over all supported interpreters on GitHub Actions (which runs tests on Linux and Windows).
|
|
|
0d485a0 |
|
|
|
0d485a0 |
To run individual test scripts, run from the top level directory of the repository a command like:
|
|
|
0d485a0 |
|
|
|
0d485a0 |
diff --git a/appveyor.yml b/appveyor.yml
|
|
|
0d485a0 |
deleted file mode 100644
|
|
|
0d485a0 |
index 95f0f63..0000000
|
|
|
0d485a0 |
--- a/appveyor.yml
|
|
|
0d485a0 |
+++ /dev/null
|
|
|
0d485a0 |
@@ -1,7 +0,0 @@
|
|
|
0d485a0 |
-install:
|
|
|
0d485a0 |
- - SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%
|
|
|
0d485a0 |
- - pip install tox
|
|
|
0d485a0 |
-
|
|
|
0d485a0 |
-build: false
|
|
|
0d485a0 |
-
|
|
|
0d485a0 |
-test_script: tox -e "py27,py37"
|
|
|
0d485a0 |
diff --git a/tox.ini b/tox.ini
|
|
|
0d485a0 |
index 192215a..7420f08 100644
|
|
|
0d485a0 |
--- a/tox.ini
|
|
|
0d485a0 |
+++ b/tox.ini
|
|
|
0d485a0 |
@@ -1,6 +1,21 @@
|
|
|
0d485a0 |
[tox]
|
|
|
0d485a0 |
skip_missing_interpreters=True
|
|
|
0d485a0 |
-envlist = py27, py34, py35, py36, py37, py38, py39, pypy
|
|
|
0d485a0 |
+envlist = py{27,34,35,36,37,38,39}-{linux,windows}, pypy
|
|
|
0d485a0 |
+
|
|
|
0d485a0 |
+[gh-actions]
|
|
|
0d485a0 |
+python =
|
|
|
0d485a0 |
+ 2.7: py27
|
|
|
0d485a0 |
+ 3.4: py34
|
|
|
0d485a0 |
+ 3.5: py35
|
|
|
0d485a0 |
+ 3.6: py36
|
|
|
0d485a0 |
+ 3.7: py37
|
|
|
0d485a0 |
+ 3.8: py38
|
|
|
0d485a0 |
+ 3.9: py39
|
|
|
0d485a0 |
+
|
|
|
0d485a0 |
+[gh-actions:env]
|
|
|
0d485a0 |
+PLATFORM =
|
|
|
0d485a0 |
+ ubuntu-latest: linux
|
|
|
0d485a0 |
+ windows-latest: windows
|
|
|
0d485a0 |
|
|
|
0d485a0 |
[testenv]
|
|
|
0d485a0 |
passenv = CI HOME
|
|
|
0d485a0 |
--
|
|
|
0d485a0 |
2.31.1
|
|
|
0d485a0 |
|