README doctests #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: README doctests | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: udpate | |
run: | | |
sudo apt-get update | |
- name: Install curl | |
run: | | |
sudo apt-get install curl | |
- name: Install rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf -y https://sh.rustup.rs | sh | |
sudo apt-get install rustc cargo | |
- name: Install pip for Python-3 | |
run: | | |
sudo apt-get install python3-pip python3-dev | |
- name: Install Python libraries | |
run: | | |
python3 -m pip install numpy shapely scipy matplotlib toml byexample | |
- name: install Python Bindings | |
run: | | |
python3 -m pip install setuptools_rust testresources setuptools wheel | |
python3 -m pip install --upgrade pip setuptools wheel | |
python3 -m pip install . | |
- name: run byexample | |
run: | | |
byexample -l python3,shell README.md -vvv --timeout 300 --no-enhance-diff -o '+norm-ws +rm=~ +term=dumb' |