File tree Expand file tree Collapse file tree 1 file changed +26
-14
lines changed
Expand file tree Collapse file tree 1 file changed +26
-14
lines changed Original file line number Diff line number Diff line change 1- on : [push]
1+ name : Python Build
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
28
39jobs :
410 build :
511 runs-on : ubuntu-latest
12+
613 strategy :
714 matrix :
8- python-version : ["3.8", "3.9", "3.10"]
15+ python-version : [3.8, 3.9, 3.10]
16+
917 steps :
10- - uses : actions/checkout@v4
11- - name : Set up Python ${{ matrix.python-version }}
12- uses : actions/setup-python@v3
13- with :
14- python-version : ${{ matrix.python-version }}
15- - name : Install dependencies
16- run : |
17- python -m pip install --upgrade pip
18- pip install pylint
19- - name : Analysing the code with pylint
20- run : |
21- pylint $(git ls-files '*.py')
18+ - name : 📥 Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : 🐍 Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+
26+ - name : 📦 Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install numpy pandas scipy matplotlib
30+
31+ - name : 🧪 Run Python build check
32+ run : |
33+ python -c "import numpy, pandas, scipy, matplotlib; print('✅ All core libraries imported successfully.')"
You can’t perform that action at this time.
0 commit comments