mirror of
https://github.com/bellingcat/vk-url-scraper.git
synced 2026-06-11 04:48:36 +03:00
ported vk scraper logic into lib
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -88,7 +88,7 @@ jobs:
|
||||
if: always()
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
pip uninstall -y my-package
|
||||
pip uninstall -y vk-url-scraper
|
||||
|
||||
release:
|
||||
name: Release
|
||||
|
||||
2
.github/workflows/pr_checks.yml
vendored
2
.github/workflows/pr_checks.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'my_package/**'
|
||||
- 'vk_url_scraper/**'
|
||||
|
||||
jobs:
|
||||
changelog:
|
||||
|
||||
51
.github/workflows/setup.yml
vendored
51
.github/workflows/setup.yml
vendored
@@ -1,51 +0,0 @@
|
||||
name: Setup
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test_personalize:
|
||||
name: Personalize
|
||||
runs-on: [ubuntu-latest]
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.7'
|
||||
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
pip install -r setup-requirements.txt
|
||||
|
||||
- name: Run personalize script
|
||||
run: |
|
||||
python scripts/personalize.py --github-org epwalsh --github-repo new-repo --package-name new-package --yes
|
||||
|
||||
- name: Verify changes
|
||||
shell: bash
|
||||
run: |
|
||||
set -eo pipefail
|
||||
# Check that 'new-package' replaced 'my-package' in some files.
|
||||
grep -q 'new-package' setup.py .github/workflows/main.yml CONTRIBUTING.md
|
||||
# Check that the new repo URL replaced the old one in some files.
|
||||
grep -q 'https://github.com/epwalsh/new-repo' setup.py CONTRIBUTING.md
|
||||
# Double check that there are no lingering mentions of old names.
|
||||
for pattern in 'my[-_]package' 'https://github.com/allenai/python-package-template'; do
|
||||
if find . -type f -not -path './.git/*' | xargs grep "$pattern"; then
|
||||
echo "Found ${pattern} where it shouldn't be!"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "All good!"
|
||||
Reference in New Issue
Block a user