File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -326,47 +326,6 @@ This is how **open-source** contributions work — anyone can suggest improvemen
326326
327327---
328328
329- ## 9. GitHub Actions — Automated Testing
330-
331- Dr. X wants to ensure changes don't break the pipeline. They set up ** GitHub Actions** to automatically test every commit.
332-
333- ### ` .github/workflows/test.yml ` :
334- ```` yaml
335- name : Test Pipeline
336-
337- on : [push, pull_request]
338-
339- jobs :
340- test :
341- runs-on : ubuntu-latest
342- steps :
343- - uses : actions/checkout@v3
344- - name : Set up Python
345- uses : actions/setup-python@v4
346- with :
347- python-version : ' 3.9'
348- - name : Install dependencies
349- run : |
350- pip install -r requirements.txt
351- - name : Run tests
352- run : |
353- pytest tests/
354- ` ` ` `
355-
356- Now, every push and PR triggers automated tests. If tests fail, the PR shows a ❌ and won't be merged until fixed.
357- ` ` ` ` mermaid
358- flowchart LR
359- A[Push to GitHub] --> B[GitHub Actions triggered]
360- B --> C{Tests pass?}
361- C -->|Yes ✓| D[Green checkmark]
362- C -->|No ✗| E[Red X - Fix before merge]
363-
364- style D fill:#e6ffe6,stroke:#0a0
365- style E fill:#ffe6e6,stroke:#f00
366- ````
367-
368- ---
369-
370329## 10. README and Documentation
371330
372331A good ` README.md ` is like a well-written Methods section — it should help others reproduce your work.
You can’t perform that action at this time.
0 commit comments