-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c726630
commit 294a646
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Linting | ||
|
||
on: | ||
#schedule: | ||
# - cron: "0 2 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-data: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
cache-dependency-path: 'webclient/package.json' | ||
- name: Install node dependencies | ||
run: | | ||
npm install -g openapi-format | ||
npm install --prefix webclient | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements*.txt' | ||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt | ||
- name: Download data | ||
run: | | ||
rm results/*.json | ||
export PYTHONPATH=$PYTHONPATH:. | ||
python3 external/main.py | ||
ls -lah | ||
working-directory: data | ||
- name: Fix linting errors | ||
continue-on-error: true | ||
uses: pre-commit/[email protected] | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: Synced the data with upstream | ||
title: [data-update] Synced the data with upstream datasources | ||
body: | | ||
- Updated the data with upstream sources | ||
- Auto-generated by [create-pull-request][1] | ||
[ 1 ]: https://github.com/peter-evans/create-pull-request | ||
assignees: CommanderStorm | ||
reviewers: CommanderStorm | ||
branch: chore/data-update | ||
delete-branch: true |