Skip to content

Commit a64afce

Browse files
authored
Create ci.yml
feat: Setup initial CI/CD workflow with Pytest
1 parent 8f6914d commit a64afce

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# .github/workflows/ci.yml
2+
3+
name: Continuous Integration
4+
5+
on:
6+
push:
7+
branches: [ main, master ]
8+
pull_request:
9+
branches: [ main, master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
17+
18+
steps:
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+
# Install dependencies needed for both the project and testing (click, ruamel.yaml, pytest)
30+
pip install click ruamel.yaml pytest
31+
32+
- name: Run tests with pytest
33+
run: |
34+
# Run pytest command from the root directory
35+
pytest

0 commit comments

Comments
 (0)