mirror of
https://github.com/chatmail/core.git
synced 2026-05-21 07:46:31 +03:00
try
This commit is contained in:
committed by
dignifiedquire
parent
58ad14d9c3
commit
7ab5d36b5b
19
.github/workflows/rust.yml
vendored
19
.github/workflows/rust.yml
vendored
@@ -76,3 +76,22 @@ jobs:
|
|||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
run: cargo clippy --all
|
run: cargo clippy --all
|
||||||
|
|
||||||
|
python_tests:
|
||||||
|
name: 3.7 python tests sample
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
components: rustfmt
|
||||||
|
|
||||||
|
- name: Setup python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
architecture: x64
|
||||||
|
- run: bash ci_scripts/run-python.sh
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ export TOXWORKDIR=.docker-tox
|
|||||||
|
|
||||||
export PATH=/root/.cargo/bin:$PATH
|
export PATH=/root/.cargo/bin:$PATH
|
||||||
cargo build --release -p deltachat_ffi
|
cargo build --release -p deltachat_ffi
|
||||||
# cargo test --all --all-features
|
|
||||||
|
|
||||||
# Statically link against libdeltachat.a.
|
# Statically link against libdeltachat.a.
|
||||||
export DCC_RS_DEV=$(pwd)
|
export DCC_RS_DEV=$(pwd)
|
||||||
@@ -22,36 +21,27 @@ export DCC_RS_DEV=$(pwd)
|
|||||||
# needed by tox below.
|
# needed by tox below.
|
||||||
export PATH=$PATH:/opt/python/cp35-cp35m/bin
|
export PATH=$PATH:/opt/python/cp35-cp35m/bin
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
pushd /bin
|
|
||||||
ln -s /opt/python/cp27-cp27m/bin/python2.7
|
pushd python
|
||||||
ln -s /opt/python/cp36-cp36m/bin/python3.6
|
# prepare a clean tox run
|
||||||
ln -s /opt/python/cp37-cp37m/bin/python3.7
|
rm -rf tests/__pycache__
|
||||||
|
rm -rf src/deltachat/__pycache__
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
|
# run tox. The circle-ci project env-var-setting DCC_PY_LIVECONFIG
|
||||||
|
# allows running of "liveconfig" tests but for speed reasons
|
||||||
|
# we run them only for the highest python version we support
|
||||||
|
|
||||||
|
# we split out qr-tests run to minimize likelyness of flaky tests
|
||||||
|
# (some qr tests are pretty heavy in terms of send/received
|
||||||
|
# messages and rust's imap code likely has concurrency problems)
|
||||||
|
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "not qr"
|
||||||
|
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "qr"
|
||||||
|
unset DCC_PY_LIVECONFIG
|
||||||
|
#tox --workdir "$TOXWORKDIR" -p4 -e lint,py35,py36,doc
|
||||||
|
#tox --workdir "$TOXWORKDIR" -e auditwheels
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if [ -n "$TESTS" ]; then
|
|
||||||
|
|
||||||
pushd python
|
|
||||||
# prepare a clean tox run
|
|
||||||
rm -rf tests/__pycache__
|
|
||||||
rm -rf src/deltachat/__pycache__
|
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
|
|
||||||
# run tox. The circle-ci project env-var-setting DCC_PY_LIVECONFIG
|
|
||||||
# allows running of "liveconfig" tests but for speed reasons
|
|
||||||
# we run them only for the highest python version we support
|
|
||||||
|
|
||||||
# we split out qr-tests run to minimize likelyness of flaky tests
|
|
||||||
# (some qr tests are pretty heavy in terms of send/received
|
|
||||||
# messages and rust's imap code likely has concurrency problems)
|
|
||||||
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "not qr"
|
|
||||||
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "qr"
|
|
||||||
unset DCC_PY_LIVECONFIG
|
|
||||||
tox --workdir "$TOXWORKDIR" -p4 -e lint,py35,py36,doc
|
|
||||||
tox --workdir "$TOXWORKDIR" -e auditwheels
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# if [ -n "$DOCS" ]; then
|
# if [ -n "$DOCS" ]; then
|
||||||
# echo -----------------------
|
# echo -----------------------
|
||||||
# echo generating python docs
|
# echo generating python docs
|
||||||
|
|||||||
Reference in New Issue
Block a user