Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/crawl repos #3

Merged
merged 46 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b02a3fb
crawl forks of a tracked repo
Magier Jun 27, 2024
d68c870
support pagination when fetching forks of a GH repo
Magier Jun 27, 2024
fa6c25c
use Release class instead of dict
Magier Jun 27, 2024
3591cc2
improve naming of forks of forks
Magier Jun 27, 2024
0f491ce
Create incremental_feed_update.yml
Magier Jul 2, 2024
b0ce22a
add to save and load queue of crawled repos across runs
Magier Jul 2, 2024
5057d59
extract current quotas from API request headers
Magier Jul 2, 2024
c01adc2
add results per request to max. 100 to reduce number of necessary req…
Magier Jul 2, 2024
f952ea7
log rate limits for testing
Magier Jul 2, 2024
ad8c43a
Update update_feed.yml
Magier Jul 2, 2024
238e6c9
fix faulty setting for GH token on release fetch
Magier Jul 2, 2024
64d4be6
new update
github-actions[bot] Jun 28, 2024
6c6d866
new update
github-actions[bot] Jun 29, 2024
6ff01d0
new update
github-actions[bot] Jun 30, 2024
1cbb7a8
manual feed update for old gotty, xray and v2ray versions
Magier Jun 30, 2024
ccebad9
new update
github-actions[bot] Jul 1, 2024
eb2d10f
new update
github-actions[bot] Jul 2, 2024
0479598
Create manual.yml
Magier Jul 2, 2024
3e003d5
Update manual.yml
Magier Jul 2, 2024
1a3e2ad
Use branch and create PR in workflow
Magier Jul 2, 2024
c6e89ec
set GH_TOKEN for all steps in the workflow
Magier Jul 3, 2024
b289c3b
Update update_feed.yml
Magier Jul 3, 2024
63ff43b
Update update_feed.yml
Magier Jul 3, 2024
e86b1f5
Update update_feed.yml
Magier Jul 3, 2024
15e31b4
Update update_feed.yml
Magier Jul 3, 2024
b2b7ed4
add explicit PR write permissions
Magier Jul 3, 2024
45d7e25
new update
github-actions[bot] Jul 3, 2024
ba96089
remove intermediary queue between runs
Magier Jul 3, 2024
b86b458
remove old feeds
Magier Jul 3, 2024
a964c50
restructure main flow for easier testability
Magier Jul 3, 2024
82df671
remove substore entries from feed
Magier Jul 4, 2024
8417438
reduced boilerplate for unittests of main setup
Magier Jul 4, 2024
8e595e2
add entries for xmrig forks
Magier Jul 4, 2024
257ba99
add GH workflow for running unit tests
Magier Jul 4, 2024
922281b
install pytest dependency in workflow
Magier Jul 4, 2024
d2c234f
update ruff check command after update
Magier Jul 4, 2024
6c7a163
fix ruff complaints
Magier Jul 4, 2024
e519e9c
Merge branch 'main' into feature/crawl-repos
Magier Jul 4, 2024
a2e4e83
emprove exception handling for issues during download
Magier Jul 4, 2024
e115846
parallelize asset processing per release
Magier Jul 4, 2024
eff28a8
fix issue where variant name got mixed up across due to parallelization
Magier Jul 5, 2024
f743832
add fork entries
Magier Jul 5, 2024
7b98054
Merge branch 'main' into feature/crawl-repos
Magier Jul 5, 2024
6252c98
stop writing copy of daily update
Magier Jul 5, 2024
d689d77
Merge remote-tracking branch 'origin/main' into feature/crawl-repos
Magier Jul 13, 2024
09bd34e
used namedtuples
Magier Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI/CD

on:
push:
pull_request:
branches: [ "main" ]
workflow_call:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
# - name: Cache pre-commit environments
# id: cache-pre-commit
# uses: actions/cache@v3
# with:
# path: ~/.cache/pre-commit
# key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pre-commit-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff check --output-format=github .
- name: Test with pytest
run: pytest
29 changes: 29 additions & 0 deletions .github/workflows/incremental_feed_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a basic workflow that is manually triggered

name: Manual workflow

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs: {}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
get_rate_limit:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Get rate limit
run: gh api rate_limit
# This workflow contains a single job called "greet"
# greet:
# # The type of runner that the job will run on
# runs-on: ubuntu-latest

# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Runs a single command using the runners shell
# - name: Send greeting
# run: echo "Hello ${{ inputs.name }}"
1,584 changes: 0 additions & 1,584 deletions data/2024-06-09.csv

This file was deleted.

3,483 changes: 0 additions & 3,483 deletions data/2024-06-11.csv

This file was deleted.

3,598 changes: 0 additions & 3,598 deletions data/2024-06-12.csv

This file was deleted.

4,350 changes: 0 additions & 4,350 deletions data/2024-06-13.csv

This file was deleted.

4,358 changes: 0 additions & 4,358 deletions data/2024-06-14.csv

This file was deleted.

3,291 changes: 0 additions & 3,291 deletions data/2024-06-15.csv

This file was deleted.

3,304 changes: 0 additions & 3,304 deletions data/2024-06-16.csv

This file was deleted.

3,320 changes: 0 additions & 3,320 deletions data/2024-06-17.csv

This file was deleted.

2,397 changes: 0 additions & 2,397 deletions data/2024-06-18.csv

This file was deleted.

4,514 changes: 0 additions & 4,514 deletions data/2024-06-19.csv

This file was deleted.

4,514 changes: 0 additions & 4,514 deletions data/2024-06-20.csv

This file was deleted.

4,530 changes: 0 additions & 4,530 deletions data/2024-06-21.csv

This file was deleted.

4,547 changes: 0 additions & 4,547 deletions data/2024-06-22.csv

This file was deleted.

4,765 changes: 0 additions & 4,765 deletions data/2024-06-24.csv

This file was deleted.

4,779 changes: 0 additions & 4,779 deletions data/2024-06-25.csv

This file was deleted.

5,033 changes: 3,114 additions & 1,919 deletions data/latest.csv

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.pytest.ini_options]
pythonpath = [
"."
]
Loading
Loading