2023-10-20 11:06:27 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2023-10-21 12:49:05 +02:00
|
|
|
tox:
|
2023-12-11 13:51:45 +01:00
|
|
|
name: isolated chatmaild tests
|
2023-10-20 11:06:27 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-12-10 18:40:09 +01:00
|
|
|
|
2023-10-21 12:49:05 +02:00
|
|
|
- name: run chatmaild tests
|
2023-10-20 11:06:27 +02:00
|
|
|
working-directory: chatmaild
|
|
|
|
run: pipx run tox
|
2023-12-10 18:40:09 +01:00
|
|
|
|
2023-10-21 12:51:30 +02:00
|
|
|
scripts:
|
2023-12-11 13:51:45 +01:00
|
|
|
name: deploy-chatmail tests
|
2023-10-21 12:51:30 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-12-09 17:45:26 +01:00
|
|
|
|
2023-12-10 18:40:09 +01:00
|
|
|
- name: initenv
|
|
|
|
run: scripts/initenv.sh
|
2023-12-09 17:45:26 +01:00
|
|
|
|
2023-12-11 14:05:07 +01:00
|
|
|
- name: append venv/bin to PATH
|
|
|
|
run: echo venv/bin >>$GITHUB_PATH
|
|
|
|
|
2023-12-11 13:51:45 +01:00
|
|
|
- name: run formatting checks
|
2023-12-11 14:05:07 +01:00
|
|
|
run: cmdeploy fmt -v
|
2023-12-11 13:51:45 +01:00
|
|
|
|
|
|
|
- name: run deploy-chatmail offline tests
|
2023-12-11 17:36:18 +01:00
|
|
|
run: pytest --pyargs cmdeploy
|
2023-12-11 13:51:45 +01:00
|
|
|
|
|
|
|
# all other cmdeploy commands require a staging server
|
|
|
|
# see https://github.com/deltachat/chatmail/issues/100
|