mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
Rename some tasks
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -61,17 +61,17 @@ jobs:
|
||||
|
||||
pdm install -v
|
||||
|
||||
- name: Scanning for security issues using bandit
|
||||
- name: run security scan
|
||||
run: |
|
||||
pdm run bandit
|
||||
pdm run scan
|
||||
|
||||
- name: pylint
|
||||
- name: check code style
|
||||
run: |
|
||||
pdm run pylint
|
||||
pdm run lint
|
||||
|
||||
- name: pytest
|
||||
- name: run unit tests
|
||||
run: |
|
||||
pdm run pytest
|
||||
pdm run test
|
||||
|
||||
- name: run kleinanzeigen_bot
|
||||
run: |
|
||||
@@ -118,11 +118,11 @@ jobs:
|
||||
;;
|
||||
esac
|
||||
|
||||
- name: pyinstaller
|
||||
- name: build self-contained executable
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
pdm run pyinstaller
|
||||
pdm run compile
|
||||
|
||||
ls -l dist
|
||||
|
||||
|
||||
@@ -268,10 +268,9 @@ updated_on: # set automatically
|
||||
|
||||
> Please read [CONTRIBUTING.md](CONTRIBUTING.md) before contributing code. Thank you!
|
||||
|
||||
- Running unit tests: `pdm run pytest`
|
||||
- Running linter: `pdm run pylint`
|
||||
- Displaying effective version:`python setup.py --version`
|
||||
- Creating Windows executable: `pdm run pyinstaller`
|
||||
- Running unit tests: `pdm run test`
|
||||
- Running linter: `pdm run lint`
|
||||
- Creating platform-specific executable: `pdm run compile`
|
||||
- Application bootstrap works like this:
|
||||
```python
|
||||
pdm run app
|
||||
|
||||
@@ -39,8 +39,8 @@ RUN apt-get update \
|
||||
# install required libraries
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
binutils `# required by pyinstaller` \
|
||||
#curl xz-utils `# required to install upx` \
|
||||
git `# required by pdm to generate app version` \
|
||||
curl xz-utils `# required to install upx` \
|
||||
#
|
||||
# install upx
|
||||
# upx is currently not supported on Linux, see https://github.com/pyinstaller/pyinstaller/discussions/6275
|
||||
@@ -68,7 +68,7 @@ RUN cd /opt/app \
|
||||
&& pip install -t __pypackages__/3.10/lib selenium \
|
||||
&& pdm install -v \
|
||||
&& ls -la kleinanzeigen_bot \
|
||||
&& pdm run pyinstaller \
|
||||
&& pdm run compile \
|
||||
&& ls -l dist
|
||||
|
||||
RUN /opt/app/dist/kleinanzeigen-bot --help
|
||||
|
||||
@@ -66,10 +66,10 @@ dev = [
|
||||
|
||||
[tool.pdm.scripts]
|
||||
app = "python -m kleinanzeigen_bot"
|
||||
bandit = "bandit -c pyproject.toml -r kleinanzeigen_bot"
|
||||
pyinstaller = "python -O -m PyInstaller pyinstaller.spec --clean"
|
||||
pylint = "pylint kleinanzeigen_bot"
|
||||
pytest = "python -m pytest -v"
|
||||
compile = "python -O -m PyInstaller pyinstaller.spec --clean"
|
||||
lint = "pylint kleinanzeigen_bot"
|
||||
scan = "bandit -c pyproject.toml -r kleinanzeigen_bot"
|
||||
test = "python -m pytest -v"
|
||||
|
||||
|
||||
#####################
|
||||
|
||||
Reference in New Issue
Block a user