Skip to content

Commit 462e61b

Browse files
authored
Fix CI (#172)
1 parent 1d161ec commit 462e61b

File tree

4 files changed

+27
-50
lines changed

4 files changed

+27
-50
lines changed

Diff for: .github/workflows/deploy.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,45 @@ name: Deploy to Pypi
22
on:
33
push:
44
tags:
5-
- '*'
5+
- 'v*.*.*'
66

77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v1
12+
1213
- name: Set up Python 3.7
1314
uses: actions/setup-python@v1
1415
with:
1516
python-version: 3.7
17+
1618
- name: Install Dependencies
1719
run: pip install -r requirements/dev.txt
20+
1821
- name: Set env
1922
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
23+
2024
- name: update Package version
2125
run: sed -i "s/.*__version__.*/__version__ = \"${{ env.RELEASE_VERSION }}\"/g" search_engine_parser/__init__.py
26+
2227
- name: Install pypa/build
2328
run: python -m pip install build --user
29+
2430
- name: Build a binary wheel and a source tarball
2531
run: python -m build --sdist --wheel --outdir dist/ .
32+
33+
- name: Build Changelog
34+
id: github_release
35+
uses: mikepenz/release-changelog-builder-action@v3
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Create Release
40+
uses: softprops/[email protected]
41+
with:
42+
body: ${{steps.github_release.outputs.changelog}}
43+
2644
- name: Publish package
2745
uses: pypa/gh-action-pypi-publish@release/v1
2846
with:

Diff for: .github/workflows/test.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ on:
1313
- '**.py'
1414
- 'requirements/**'
1515

16-
strategy:
17-
matrix:
18-
python: ["3.6", "3.7", "3.8", "3.9"]
19-
2016
jobs:
2117
test:
18+
strategy:
19+
matrix:
20+
python: ["3.6", "3.7", "3.8", "3.9"]
2221
runs-on: ubuntu-latest
2322
steps:
2423
- uses: actions/checkout@v1
24+
2525
- name: Set up Python 3.7
2626
uses: actions/setup-python@v1
2727
with:
2828
python-version: ${{ matrix.python }}
29+
2930
- name: Install Dependencies
3031
run: pip install -r requirements/dev.txt
32+
3133
- name: Install package
3234
run: pytest -s

Diff for: .travis.yml

-44
This file was deleted.

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
[![Python 3.6|3.7|3.8|3.9](https://img.shields.io/badge/python-3.5%7C3.6%7C3.7%7C3.8-blue)](https://www.python.org/downloads/)
88
[![PyPI version](https://img.shields.io/pypi/v/search-engine-parser)](https://pypi.org/project/search-engine-parser/)
99
[![PyPI - Downloads](https://img.shields.io/pypi/dm/search-engine-parser)](https://pypi.org/project/search-engine-parser/)
10-
[![Build Status](https://travis-ci.com/bisoncorps/search-engine-parser.svg?branch=master)](https://travis-ci.com/bisoncorps/search-engine-parser)
10+
[![Deploy to Pypi](https://github.com/bisohns/search-engine-parser/actions/workflows/deploy.yml/badge.svg)](https://github.com/bisohns/search-engine-parser/actions/workflows/deploy.yml)
11+
[![Test](https://github.com/bisohns/search-engine-parser/actions/workflows/test.yml/badge.svg)](https://github.com/bisohns/search-engine-parser/actions/workflows/test.yml)
1112
[![Documentation Status](https://readthedocs.org/projects/search-engine-parser/badge/?version=latest)](https://search-engine-parser.readthedocs.io/en/latest/?badge=latest)
1213
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1314
[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg)](#contributors)

0 commit comments

Comments
 (0)