Skip to content

Commit

Permalink
ci: run python tests on github workers
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed May 16, 2021
1 parent 4391835 commit 0928050
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
52 changes: 34 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
18 changes: 0 additions & 18 deletions .github/workflows/remote_tests.yml

This file was deleted.

0 comments on commit 0928050

Please sign in to comment.