Merge pull request #1719 from palaviv/more-actions

Add more jobs to github actions
This commit is contained in:
Jeong YunWon
2020-01-31 01:41:28 +09:00
committed by GitHub

View File

@@ -75,4 +75,62 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -Dwarnings
args: --all -- -Dwarnings
lint:
name: Lint Python code with flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: 3.6
- name: install flake8
run: python -m pip install flake8
- name: run lint
run: flake8 . --count --exclude=./.*,./Lib,./vm/Lib --select=E9,F63,F7,F82 --show-source --statistics
cpython:
name: Run CPython test suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build rustpython
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all
- name: run tests
run: |
export RUSTPYTHONPATH=`pwd`/Lib
cargo run -- -m test -v
wasm:
name: Run wasm selenium tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: install geckodriver
run: |
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux32.tar.gz
mkdir geckodriver
tar -xzf geckodriver-v0.24.0-linux32.tar.gz -C geckodriver
- uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install pipenv
run: |
python -V
python -m pip install --upgrade pip
python -m pip install pipenv
- run: pipenv install
working-directory: ./wasm/tests
- uses: actions/setup-node@v1
- name: run test
run: |
export PATH=$PATH:`pwd`/../../geckodriver
npm install
npm run test
working-directory: ./wasm/demo