diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-12-08 16:29:09 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-12-08 16:29:09 -0500 |
| commit | c681f6748acaea1bf0b706528c36327cc94a6eed (patch) | |
| tree | 02ffcf4431af90f3d2b18daf0a7914aa60a2b409 /.github/workflows | |
| download | python-setuptools-git-c681f6748acaea1bf0b706528c36327cc94a6eed.tar.gz | |
Collapse skeleton history from archive/2020-12
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..8c5c232c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Automated Tests + +on: [push, pull_request] + +jobs: + test: + strategy: + matrix: + python: [3.6, 3.8, 3.9] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: | + python -m pip install tox + - name: Run tests + run: tox + + release: + needs: test + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install tox + run: | + python -m pip install tox + - name: Release + run: tox -e release + env: + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
