Skip to content

Commit 745ae2e

Browse files
author
Rasmus Oscar Welander
committed
Added build step to CI
1 parent eef8de9 commit 745ae2e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Linting and unit tests
4+
name: Lint, Build and Test
55
on:
66
push:
77
branches: [ "main" ]
@@ -32,8 +32,11 @@ jobs:
3232
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3333
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide, we further relax this
3434
flake8 . --count --exit-zero --max-complexity=30 --max-line-length=130 --statistics
35-
35+
- name: Build
36+
run: |
37+
pip install build
38+
python -m build
3639
- name: Test with pytest
3740
run: |
3841
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
39-
pytest --cov-report term --cov=src tests/
42+
pytest --cov-report term --cov=cs3client tests/

0 commit comments

Comments
 (0)