mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-06 19:45:20 +01:00
44 lines
1022 B
YAML
44 lines
1022 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
|
|
runs-on: macOS-latest
|
|
env:
|
|
PYENV_VERSION: "2.7.13"
|
|
PYENV_ROOT: $HOME/.pyenv
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- name: Prepare python
|
|
run: |
|
|
curl https://pyenv.run | bash
|
|
{ echo 'export PATH="$PYENV_ROOT/bin:$PATH"';
|
|
echo 'eval "$(pyenv init -)"';
|
|
echo 'eval "$(pyenv virtualenv-init -)"'; } >> ~/.profile
|
|
source ~/.profile
|
|
pyenv versions
|
|
pyenv install --skip-existing "${PYENV_VERSION}"
|
|
pyenv versions
|
|
pyenv global "${PYENV_VERSION}"
|
|
pyenv version
|
|
- name: Run tests
|
|
run: |
|
|
source ~/.profile
|
|
make test-gen
|
|
make gen-all-cli cargo-api ARGS=test
|
|
make cargo-api ARGS=doc
|
|
cargo test
|