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 /.github/workflows/pr.yml | |
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.
Diffstat (limited to '.github/workflows/pr.yml')
-rw-r--r-- | .github/workflows/pr.yml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |