mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
separate unit/integration tests
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -70,18 +70,26 @@ jobs:
|
||||
|
||||
- name: check code style
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
pdm run lint
|
||||
|
||||
pdm run autopep8 -v --exit-code --recursive --diff kleinanzeigen_bot tests
|
||||
|
||||
- name: run unit tests
|
||||
run: |
|
||||
pdm run utest
|
||||
|
||||
- name: run integration tests
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
case "${{ matrix.os }}" in
|
||||
ubuntu-*)
|
||||
sudo apt-get install -o Acquire::Retries=3 --no-install-recommends -y xvfb
|
||||
xvfb-run pdm run test
|
||||
xvfb-run pdm run itest
|
||||
;;
|
||||
*) pdm run test
|
||||
*) pdm run itest
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user