Skip to content

Commit 14dccd7

Browse files
authored
Update main.yml
1 parent c5f54bc commit 14dccd7

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
on: [push]
1+
name: Python Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
28

39
jobs:
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.')"

0 commit comments

Comments
 (0)