Update PythonScriptTest.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Script Test | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
max-parallel: 5 | |
steps: | |
# step 1: checkout the repository | |
- uses: actions/checkout@v3 | |
# step 2: define Python version to run script with | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
# step 3: run the script in bash | |
- name: run script in bash | |
run: | | |
## Check if python is activated: | |
which python | |
## Check version of Python | |
python3 --version | |
##Update pip install | |
pip install --upgrade pip | |
##Install library to read xlsx files: | |
pip install openpyxl | |
ls | |
cd .. | |
ls | |
python createRDFKinData.py | |
echo "script run successfully" |