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

feat: show the popularity of 3rd-party content like Base Sets, AIs, GSes, and NewGRFs #55

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .github/workflows/create-summary-quarter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,23 @@ jobs:
fi
done

- name: Download BaNaNaS database
uses: actions/checkout@v4
with:
repository: OpenTTD/BaNaNaS
path: BaNaNaS

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Prepare environment
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run analysis
shell: bash
run: |
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/create-summary-week.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,23 @@ jobs:
rclone copy -v openttd:survey-packed-prod/${date_year}/${date_month}/openttd-survey-pack.${date}.tar.xz packed
done

- name: Download BaNaNaS database
uses: actions/checkout@v4
with:
repository: OpenTTD/BaNaNaS
path: BaNaNaS

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Prepare environment
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run analysis
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ __pycache__/
/.env/
/_analysis/
/_site/
/BaNaNaS/
/workers/node_modules/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ This is a [Jekyll](https://jekyllrb.com/) website, and is served by nginx as a s

To summarize survey results, the Python application `analysis` processes a bundle of JSONs and outputs another JSON with the summary.

To run it, simply execute `python3 -m analysis <tar-xz bundle files>`
To run it:
- `git clone https://github.com/OpenTTD/BaNaNaS` to get the BaNaNaS dataset (needed to resolve NewGRFs).
- Create a Python virtual env run `pip install -r requirements.txt`.
- `python3 -m analysis <tar-xz bundle files>` to run the analysis.

### Running a local server

Expand Down
Loading
Loading