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

chore(openchallenges): update CI for update-db-csv #2966

Merged
merged 3 commits into from
Jan 15, 2025
Merged
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
20 changes: 2 additions & 18 deletions .github/workflows/update-oc-db-csv-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
# schematic only supports Python 3.9 and 3.10, so we will need
# to specifically use one of these versions.
- name: Install system dependencies
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y pip python3.10-venv libcurl4-openssl-dev

- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.ref }}
persist-credentials: false
Expand All @@ -35,20 +27,12 @@ jobs:
pip install gspread pandas numpy
python3 apps/openchallenges/db-update/update_db_csv.py

# - name: Install schematic and validate files
# shell: bash
# run: |
# python3.10 -m venv .venv
# chmod 755 .venv/bin/activate
# source .venv/bin/activate
# pip3.10 install schematicpy

- name: Get current date
run: |
echo "TODAY=$(date +"%Y-%m-%d")" >> $GITHUB_ENV

- name: Push changes, then create or update pull request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7.0.6
with:
title: 'chore(openchallenges): ${{ env.TODAY }} DB update'
body: Daily OC database update(s)
Expand Down
Loading