diff options
author | James Socol <me@jamessocol.com> | 2022-11-05 16:49:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 16:49:51 -0400 |
commit | 7eee2152e0575cc70ebaad9bc201f38c4a2879bd (patch) | |
tree | 5db4dd2a273031797808c85e9f42db9148efb97a | |
parent | 494e18be7f44da4988b3900d68c520f92cda810f (diff) | |
parent | b73d2d4dd4b98e7fedff6075d5181724bab85025 (diff) | |
download | pystatsd-7eee2152e0575cc70ebaad9bc201f38c4a2879bd.tar.gz |
Merge pull request #163 from jsocol/clean-up-ci
Split out CI(push) from PR(pull_request) actions
-rw-r--r-- | .github/workflows/ci.yml (renamed from .github/workflows/tox.yml) | 9 | ||||
-rw-r--r-- | .github/workflows/pr.yml | 20 | ||||
-rw-r--r-- | .travis.yml | 14 |
3 files changed, 26 insertions, 17 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/ci.yml index 35afafc..6fd6ea6 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,10 @@ -name: tox -on: [push, pull_request] +name: CI +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..904644d --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,20 @@ +name: Pull Request +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/ |