Skip to content

Commit 62eb802

Browse files
authored
switch from travis to github actions (#6356)
Signed-off-by: Felix Breuer <fbreuer@pm.me>
1 parent 073f0e9 commit 62eb802

9 files changed

Lines changed: 87 additions & 176 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 14.x
16+
- name: Install and Build
17+
run: |
18+
git config --global user.name "${GH_NAME}"
19+
git config --global user.email "${GH_EMAIL}"
20+
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
21+
cd docusaurus && yarn && GIT_USER="${GH_NAME}" yarn deploy

.github/workflows/pypi.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PyPi
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
name: Deploy to PyPi
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.x
16+
- run: pip install sdist bdist_wheel
17+
- run: python setup.py sdist bdist_wheel
18+
- name: Publish package
19+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
20+
uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
user: __token__
23+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
pytest:
7+
strategy:
8+
matrix:
9+
python-version: [ 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.x ]
10+
name: Python ${{ matrix.python-version }} test
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- run: pip install pytest
18+
- run: python -m pytest
19+
20+
lint:
21+
name: Linting
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup python
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: 3.x
28+
- run: pip install black flake8
29+
- run: flake8 .
30+
- run: black -t py34 --check .

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ celerybeat-schedule
8787

8888
# virtualenv
8989
venv/
90+
.venv/
9091
ENV/
9192

9293
# Spyder project settings

.travis.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,6 @@ The **goal** of this file is explaining to the users of our project the notable
44

55
_The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)_
66

7-
## [0.6.21] - UNRELEASED
8-
9-
### Changed
10-
11-
- Change the ip data supplier to https://freegeoip.app/ from https://seeip.org/
12-
13-
## [0.6.20] - UNRELEASED
14-
15-
### Fixed
16-
17-
- Fixed empty shared data
18-
19-
## [0.6.19] - UNRELEASED
20-
21-
### Fixed
22-
23-
- Fixed xpath for when images cannot be detected
24-
25-
## [0.6.18] - UNRELEASED
26-
27-
### Added
28-
29-
- Skipping of public account with (optional) percentage
30-
31-
## [0.6.17] - UNRELEASED
32-
33-
### Added
34-
35-
- Fixed getting additional data from page source
36-
37-
## [0.6.16] - UNRELEASED
38-
39-
### Added
40-
41-
- Fix user following and verification of follow
42-
43-
## [0.6.15] - UNRELEASED
44-
45-
### Added
46-
47-
- Added `verified_only` argument to `get_followers` to return only verified users
48-
- `mandatory_bio_keywords` control before evaluating for mandatory
49-
507
## [0.6.14] - UNRELEASED
518

529
### Added
@@ -57,13 +14,24 @@ _The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5714
- Added second `accept_igcookie_dialogue` to handled the second "cookie accept screen" that is not automatically accepted
5815
- Added delays after `update_activity()` in `follow_util.py` and `util.py`
5916
- Added extra trace in `get_followers()`
17+
- Added `verified_only` argument to `get_followers` to return only verified users
18+
- `mandatory_bio_keywords` control before evaluating for mandatory
19+
- Fix user following and verification of follow
20+
- Skipping of public account with (optional) percentage
6021

6122
### Fixed
6223

6324
- Move call to `get_following_status` above `web_address_navigator` inside `get_links_for_username` function
6425
- Fixed the correct URL `displaypurposes.com`, the old `displaypurposes.com` API is deprecated
6526
- Fixed `additional-information.md`, removed extra info for `cron` configuration
6627
- Fixed `actions.md` and `settings.md` for identation
28+
- Fixed getting additional data from page source
29+
- Fixed xpath for when images cannot be detected
30+
- Fixed empty shared data
31+
32+
### Changed
33+
34+
- Change the ip data supplier to https://freegeoip.app/ from https://seeip.org/
6735

6836
## [0.6.13] - 2020-12-30
6937

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def readall(*args):
9292
],
9393
install_requires=dependencies,
9494
extras_require={"test": ["tox", "virtualenv", "tox-venv"]},
95-
python_requires=">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
95+
python_requires=">=3.4",
9696
platforms=["win32", "linux", "linux2", "darwin"],
9797
zip_safe=False,
9898
entry_points={"console_scripts": []},

tests/old_tests.rar

-2.08 KB
Binary file not shown.

tox.ini

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)