Files
google-apis-rs/.github/workflows/rust.yml
2020-04-12 14:05:02 +08:00

38 lines
851 B
YAML

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
PYENV_VERSION: "2.7.13"
PYENV_ROOT: $HOME/.pyenv
steps:
- uses: actions/checkout@v2
- name: Prepare python
run: |
set -x
curl https://pyenv.run | bash
{ echo 'export PATH="$PYENV_ROOT/bin:$PATH"';
echo 'eval "$(pyenv init -)"';
echo 'eval "$(pyenv virtualenv-init -)"'; } >> ~/.bashrc
source ~/.bashrc
pyenv versions
pyenv install --skip-existing "${PYENV_VERSION}"
pyenv versions
pyenv global "${PYENV_VERSION}"
pyenv version
- name: Run tests
run: |
make test-gen
make gen-all-cli cargo-api ARGS=test
make cargo-api ARGS=doc
cargo test