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 1e8cdce commit d0940e4
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 42 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/build.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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 }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install poetry
# poetry config settings.virtualenvs.create false
# poetry install -E all
# - name: Test
# run: |
# pip install pytest pytest-cov
# pytest --cov=argser --cov-report term-missing --cov-report xml
# - name: Upload coverage to Codecov
# run: |
# pip install codecov
# codecov -t ${{ secrets.CODECOV_TOKEN }}

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

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
# - uses: actions/checkout@v1
# - uses: actions/setup-python@v1
# with:
# python-version: 3.7
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install poetry
# poetry publish build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# argser

[![PyPI version](https://badge.fury.io/py/argser.svg)](http://badge.fury.io/py/argser)
[![Build Status](https://github.com/vanyakosmos/argser/workflows/build/badge.svg)](https://github.com/vanyakosmos/argser/actions?workflow=build)
[![Build Status](https://github.com/vanyakosmos/argser/workflows/test-publish/badge.svg)](https://github.com/vanyakosmos/argser/actions?workflow=build)
[![Coverage](https://codecov.io/gh/vanyakosmos/argser/branch/master/graph/badge.svg)](https://codecov.io/gh/vanyakosmos/argser)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/argser/)
[![Downloads](https://pepy.tech/badge/argser)](https://pepy.tech/project/argser)
Expand Down

0 comments on commit d0940e4

Please sign in to comment.