Skip to content

Commit

Permalink
WIP: publish after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyakosmos committed Oct 20, 2019
1 parent d0940e4 commit d33b23a
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ name: test-publish
on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# test:
# runs-on: ${{ matrix.os }}
# strategy:
# max-parallel: 4
# matrix:
# python-version: [3.6, 3.7]
# os: [ubuntu-latest, windows-latest]
#
# steps:
# - uses: actions/checkout@v1
# - 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
Expand All @@ -33,7 +33,7 @@ jobs:
# codecov -t ${{ secrets.CODECOV_TOKEN }}

publish:
needs: [test]
# needs: [test]
# if: github.event_name == 'push' && github.TODO
runs-on: ubuntu-latest

Expand All @@ -42,6 +42,10 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Check if ref has tags
env:
GIT_TAG: ${{ contains(github.ref, '/tags/') }}
run: echo "$GIT_TAG"
# - uses: actions/checkout@v1
# - uses: actions/setup-python@v1
# with:
Expand Down

0 comments on commit d33b23a

Please sign in to comment.