Skip to content

Commit e0cfb12

Browse files
committed
naming
1 parent e3bc872 commit e0cfb12

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/convert_csv.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: convert
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
9+
convert:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
14+
python-version: [3.8]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
pip install wheel pandas
25+
pip install wheel tabulate
26+
- name: Run script to convert table
27+
run: |
28+
python doc/convert_to_md.py
29+
- name: Commit md file
30+
run: |
31+
git config --global user.name 'OSIPI'
32+
git config --global user.email 'OSIPI@users.noreply.github.com'
33+
git commit -am "code_contributions_record.md"
34+
git push

doc/convert_to_md.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pandas as pd
2+
3+
df = pd.read_csv('./code_contributions_record.csv')
4+
with open('code_contributions_record.md', 'w') as md:
5+
df.to_markdown(buf=md, index=False)

0 commit comments

Comments
 (0)