Skip to content

Add CI for index generation #3

Add CI for index generation

Add CI for index generation #3

Workflow file for this run

name: Test index.json generation
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
tags: 'v*'
jobs:
test-generate:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Generate package index
run: |
test -f rawdata.json
python updateinfo.py
python genindex.py
- name: Upload package index
uses: actions/upload-artifact@v4
with:
name: packageIndex
if-no-files-found: error
path: |
rawdata.json
index.json