diff options
author | James Socol <me@jamessocol.com> | 2022-11-05 16:46:05 -0400 |
---|---|---|
committer | James Socol <me@jamessocol.com> | 2022-11-05 16:46:50 -0400 |
commit | 39a0d6d9c5f9882b8d791b3b926e74a9111ccc4e (patch) | |
tree | 685c5e34839d6c6eb3a2813f1a9360b4f1485aa2 | |
parent | 494e18be7f44da4988b3900d68c520f92cda810f (diff) | |
download | pystatsd-39a0d6d9c5f9882b8d791b3b926e74a9111ccc4e.tar.gz |
Split out CI(push) from PR(pull_request) actions
This way we don't run everything twice on a PR. And drops the old
Travis-CI config because, yeah.
-rw-r--r-- | .github/workflows/ci.yml (renamed from .github/workflows/tox.yml) | 7 | ||||
-rw-r--r-- | .github/workflows/pr.yml | 20 | ||||
-rw-r--r-- | .travis.yml | 14 |
3 files changed, 25 insertions, 16 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/ci.yml index 35afafc..a4a4653 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,10 @@ name: tox -on: [push, pull_request] +on: + push: + branches: + - main jobs: - tox: + test: strategy: fail-fast: false matrix: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..5c8a829 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,20 @@ +name: tox +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest] + python: ['3.7', '3.8', '3.9', 'pypy-3.9'] # Nose fails on Python 3.10+ + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - run: pip install --upgrade pip + - run: pip install tox + - run: tox -e py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2ff0fc0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -python: - - "2.7" - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "pypy" - - "pypy3" -install: - - pip install -q "flake8" -script: - - nosetests --with-coverage --cover-package=statsd - - flake8 statsd/ |