chatmail/.github/workflows/ci.yaml

38 lines
793 B
YAML
Raw Normal View History

2023-10-20 11:06:27 +02:00
name: CI
on:
pull_request:
push:
jobs:
2023-10-21 12:49:05 +02:00
tox:
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:
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
- name: run formatting checks
2023-12-11 14:05:07 +01:00
run: cmdeploy fmt -v
- name: run deploy-chatmail offline tests
2023-12-11 17:36:18 +01:00
run: pytest --pyargs cmdeploy
# all other cmdeploy commands require a staging server
# see https://github.com/deltachat/chatmail/issues/100