Skip to content

Commit

Permalink
added build step
Browse files Browse the repository at this point in the history
  • Loading branch information
hofiorg committed Mar 16, 2024
1 parent 50a566b commit a9129f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pylint and Pytest
name: Pylint, Pytest and Build

on: [push]

Expand Down Expand Up @@ -29,3 +29,5 @@ jobs:
with:
name: junit-test-results-python-${{ matrix.python-version }}
path: junit
- name: Build package
run: python -m build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ myenv/
junit/
.DS_Store
*.egg-info/
build/
build/
dist/
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python Scripts [![Pylint and Pytest](https://github.com/hofiorg/python_scripts/actions/workflows/pylint.yml/badge.svg)](https://github.com/hofiorg/python_scripts/actions/workflows/pylint.yml)
# Python Scripts [![Pylint, Pytest and Build](https://github.com/hofiorg/python_scripts/actions/workflows/pylint.yml/badge.svg)](https://github.com/hofiorg/python_scripts/actions/workflows/pylint.yml)

check_urls, hello_world and other stuff.

Expand Down Expand Up @@ -29,6 +29,12 @@ pylint $(git ls-files '*.py')
pytest tests --junitxml=junit/test-results.xml --html=junit/test-results.html
```

## Build

```sh
python -m build
```

## [check_urls.py](./scripts/check_urls.py)

This script checks URLs defined in a JSON file. For each URL, it verifies if the response
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
astroid==3.1.0
build==1.1.1
certifi==2024.2.2
charset-normalizer==3.3.2
coverage==7.4.4
Expand All @@ -13,6 +14,7 @@ packaging==24.0
platformdirs==4.2.0
pluggy==1.4.0
pylint==3.1.0
pyproject_hooks==1.0.0
pytest==8.1.1
pytest-cov==4.1.0
pytest-html==4.1.1
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
'pytest',
'pytest-cov',
'pytest-html',
'setuptools'
'setuptools',
'build'
],
scripts=[
'scripts/check_urls.py',
Expand Down

0 comments on commit a9129f6

Please sign in to comment.