Skip to content

Commit fa4ea4e

Browse files
committed
Update workflow
1 parent bed15e9 commit fa4ea4e

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/build-and-test.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build and Test
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
1010
build:
@@ -14,35 +14,35 @@ jobs:
1414
python-version: ["3.10", "3.11", "3.12", "3.13"]
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r requirements-tests.txt
29-
pip install -r requirements-dev.txt
30-
31-
- name: Install Monic Framework
32-
run: |
33-
pip install -e .
34-
35-
- name: Run tests with coverage
36-
run: |
37-
pytest --cov=monic tests/
38-
39-
- name: Build package
40-
run: |
41-
pip install build
42-
python -m build
43-
44-
- name: Upload coverage reports to Codecov
45-
uses: codecov/codecov-action@v5
46-
with:
47-
token: ${{ secrets.CODECOV_TOKEN }}
48-
slug: cognica-io/monic-framework
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r requirements-tests.txt
29+
pip install -r requirements-dev.txt
30+
31+
- name: Install Monic Framework
32+
run: |
33+
pip install -e .
34+
35+
- name: Run tests with coverage
36+
run: |
37+
pytest --cov=monic --cov=tests tests/
38+
39+
- name: Build package
40+
run: |
41+
pip install build
42+
python -m build
43+
44+
- name: Upload coverage reports to Codecov
45+
uses: codecov/codecov-action@v5
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
slug: cognica-io/monic-framework

0 commit comments

Comments
 (0)