Skip to content

Commit

Permalink
require test for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 24, 2021
1 parent 54174a2 commit 7e89e5b
Showing 1 changed file with 3 additions and 48 deletions.
51 changes: 3 additions & 48 deletions .github/workflows/test_and_deploy.yml
Expand Up @@ -7,7 +7,7 @@ on: push

jobs:

ubuntu-latest:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -39,59 +39,14 @@ jobs:
- name: Coverage
uses: codecov/codecov-action@v1


# ubuntu-latest:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [3.6, 3.7, 3.8]

# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools tox tox-gh-actions
# - name: Test with tox
# run: tox
# - name: Coverage
# uses: codecov/codecov-action@v1

# # minimizing matrix by only testing 3.6 on mac & windows
# mac-win:
# name: ${{ matrix.platform }} (3.6)
# runs-on: ${{ matrix.platform }}
# strategy:
# fail-fast: false
# matrix:
# platform: [macos-latest, windows-latest]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.6
# uses: actions/setup-python@v1
# with:
# python-version: 3.6
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools tox tox-gh-actions
# - name: Test with tox
# run: tox
# env:
# PLATFORM: ${{ matrix.platform }}

deploy:
# needs: [ubuntu-latest, mac-win]
needs: [test]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
Expand Down

0 comments on commit 7e89e5b

Please sign in to comment.