diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a46ae89f4..bdccd8e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,26 +65,16 @@ jobs: build_and_test: name: Build and test - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.experimental }} strategy: matrix: - # macOS disabled due to random failures related to caching - #os: [ubuntu-latest, windows-latest, macOS-latest] - os: [ubuntu-latest, windows-latest] - rust: [1.50.0] - experimental: [false] -# include: -# - os: ubuntu-latest -# rust: nightly -# experimental: true -# - os: windows-latest -# rust: nightly -# experimental: true -# - os: macOS-latest -# rust: nightly -# experimental: true - + include: + - os: ubuntu-latest + rust: 1.50.0 + python: 3.6 + - os: windows-latest + rust: 1.50.0 + python: false # Python bindings compilation on Windows is not supported. + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@master @@ -125,3 +115,29 @@ jobs: with: command: test 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 diff --git a/.github/workflows/remote_tests.yml b/.github/workflows/remote_tests.yml deleted file mode 100644 index a48164d63..000000000 --- a/.github/workflows/remote_tests.yml +++ /dev/null @@ -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 }}"