diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4341078c5..4000e7296 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,58 +84,58 @@ jobs: - name: Tests run: cargo test --workspace - # - name: Test cargo vendor - # run: cargo vendor + - name: Test cargo vendor + run: cargo vendor - # - name: Install python - # if: ${{ matrix.python }} - # uses: actions/setup-python@v4 - # with: - # python-version: ${{ matrix.python }} + - name: Install python + if: ${{ matrix.python }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} - # - name: Install tox - # if: ${{ matrix.python }} - # run: pip install tox + - name: Install tox + if: ${{ matrix.python }} + run: pip install tox - # - name: Build C library - # if: ${{ matrix.python }} - # run: cargo build -p deltachat_ffi --features jsonrpc + - name: Build C library + if: ${{ matrix.python }} + run: cargo build -p deltachat_ffi --features jsonrpc - # - 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,mypy,doc,py3 + - 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,mypy,doc,py3 - # - name: Build deltachat-rpc-server - # if: ${{ matrix.python }} - # run: cargo build -p deltachat-rpc-server + - name: Build deltachat-rpc-server + if: ${{ matrix.python }} + run: cargo build -p deltachat-rpc-server - # - name: Add deltachat-rpc-server to path - # if: ${{ matrix.python }} - # run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH + - name: Add deltachat-rpc-server to path + if: ${{ matrix.python }} + run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH - # - name: Run deltachat-rpc-client tests - # if: ${{ matrix.python }} - # env: - # DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} - # working-directory: deltachat-rpc-client - # run: tox -e py3,lint + - name: Run deltachat-rpc-client tests + if: ${{ matrix.python }} + env: + DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} + working-directory: deltachat-rpc-client + run: tox -e py3,lint - # - name: Install pypy - # if: ${{ matrix.python }} - # uses: actions/setup-python@v4 - # with: - # python-version: 'pypy${{ matrix.python }}' + - name: Install pypy + if: ${{ matrix.python }} + uses: actions/setup-python@v4 + with: + python-version: 'pypy${{ matrix.python }}' - # - name: Run pypy 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 pypy3 + - name: Run pypy 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 pypy3