-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.2 KB
/
python-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Python CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Checkout repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U xlrd pandas requests beautifulsoup4 Babel
- name: Install openpyxl
run: |
python -m pip install openpyxl
- name: Run Python script
run: |
python conab.py
- name: List files after running Python script
run: ls -R
- name: Upload CSVs as artifacts
uses: actions/upload-artifact@v2
with:
name: csv-files
path: milhototal.csv soja.csv
- name: Commit and Push CSV files
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add milhototal.csv soja.csv
git commit -m "Add generated CSV files"
git push