mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
ci: run python tests on github workers
This commit is contained in:
52
.github/workflows/ci.yml
vendored
52
.github/workflows/ci.yml
vendored
@@ -65,26 +65,16 @@ jobs:
|
|||||||
|
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
continue-on-error: ${{ matrix.experimental }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# macOS disabled due to random failures related to caching
|
include:
|
||||||
#os: [ubuntu-latest, windows-latest, macOS-latest]
|
- os: ubuntu-latest
|
||||||
os: [ubuntu-latest, windows-latest]
|
rust: 1.50.0
|
||||||
rust: [1.50.0]
|
python: 3.6
|
||||||
experimental: [false]
|
- os: windows-latest
|
||||||
# include:
|
rust: 1.50.0
|
||||||
# - os: ubuntu-latest
|
python: false # Python bindings compilation on Windows is not supported.
|
||||||
# rust: nightly
|
runs-on: ${{ matrix.os }}
|
||||||
# experimental: true
|
|
||||||
# - os: windows-latest
|
|
||||||
# rust: nightly
|
|
||||||
# experimental: true
|
|
||||||
# - os: macOS-latest
|
|
||||||
# rust: nightly
|
|
||||||
# experimental: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
@@ -125,3 +115,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --all
|
args: --all
|
||||||
|
|
||||||
|
- name: install python
|
||||||
|
if: ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
|
- name: install tox
|
||||||
|
if: ${{ matrix.python }}
|
||||||
|
run: pip install tox
|
||||||
|
|
||||||
|
- name: build C library
|
||||||
|
if: ${{ matrix.python }}
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: -p deltachat_ffi
|
||||||
|
|
||||||
|
- name: run python tests
|
||||||
|
if: ${{ matrix.python }}
|
||||||
|
env:
|
||||||
|
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
||||||
|
DCC_RS_TARGET: debug
|
||||||
|
DCC_RS_DEV: ${{ github.workspace }}
|
||||||
|
working-directory: python
|
||||||
|
run: tox -e lint,doc,py3
|
||||||
|
|||||||
18
.github/workflows/remote_tests.yml
vendored
18
.github/workflows/remote_tests.yml
vendored
@@ -1,18 +0,0 @@
|
|||||||
name: Remote tests
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
remote_tests_python:
|
|
||||||
name: Remote Python tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- run: mkdir -m 700 -p ~/.ssh
|
|
||||||
- run: touch ~/.ssh/id_ed25519
|
|
||||||
- run: chmod 600 ~/.ssh/id_ed25519
|
|
||||||
- run: 'echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519'
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
|
||||||
- run: scripts/remote_tests_python.sh "deltachat-core/python/${{ github.ref }}/${{ github.run_number }}"
|
|
||||||
Reference in New Issue
Block a user