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

Improve CI routines #56

Merged
merged 2 commits into from
Jun 9, 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
File renamed without changes.
40 changes: 40 additions & 0 deletions .github/workflows/generate_files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Generate CSV and README

on:
push:
paths:
- 'src/ser-datasets.json'

jobs:
generate_files:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7ss' # Specify the Python version you need

- name: Install dependencies
run: |
cd src
python -m pip install --upgrade pip
pip install -r requirements.txt # Adjust if necessary

- name: Run script to generate CSV and README
run: |
cd src
python generate_files.py # Replace with the name of your Python script

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add src/ser-datasets.csv src/README.md # Replace with your actual CSV file name
git commit -m 'Automatically generated CSV and README from JSON update'
git push origin HEAD:main # Adjust if your default branch is not 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68 changes: 3 additions & 65 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,67 +1,5 @@
ablog==0.10.25
alabaster==0.7.12
Babel==2.10.1
beautifulsoup4==4.11.1
bleach==6.0.0
certifi==2023.7.22
cffi==1.15.1
charset-normalizer==2.0.12
commonmark==0.9.1
cryptography==42.0.4
docutils==0.17.1
entrypoints==0.4
feedgen==0.9.0
idna==3.7
imagesize==1.3.0
importlib-metadata==4.11.3
invoke==1.7.0
jeepney==0.8.0
Jinja2==3.1.4
keyring==23.6.0
latexcodec==2.0.1
lxml==4.9.1
MarkupSafe==2.1.1
nest-asyncio==1.5.6
packaging==21.3
pkginfo==1.8.3
pybtex==0.24.0
pybtex-docutils==1.0.1
pycparser==2.21
crate==0.35.2
pydata-sphinx-theme==0.8.1
Pygments==2.15.0
pyparsing==3.0.8
python-dateutil==2.8.2
pytz==2022.1
PyYAML==6.0
pyzmq==24.0.1
readme-renderer==35.0
requests==2.32.0
requests-toolbelt==0.9.1
rich==12.5.1
SecretStorage==3.3.2
six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.3.2.post1
Sphinx==4.5.0
sphinx-copybutton==0.5.0
sphinx-csv-filter==0.4.0
sphinx-panels==0.6.0
sphinx-sitemap==2.2.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-bibtex==2.4.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-pdfembed @ git+https://github.com/SuperKogito/sphinxcontrib-pdfembed@d75fb37f9e4a303888a61f265b568f7729826c4a
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sphinxcontrib-tikz==0.4.16
sphinxemoji==0.2.0
sphinxext-opengraph==0.6.3
sphinx==4.5.0
sphinx-csv-filter==0.4.1
tabulate==0.9.0
tornado==6.4.1
tqdm==4.66.3
urllib3==1.26.18
watchdog==2.1.7
webencodings==0.5.1
zipp==3.8.0