Fix python cmdline parser for variants #95
Workflow file for this run
This file contains 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: Rpclib CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
run: | |
name: Tests | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
# windows-latest async does not support it for now | |
operating-system: [macos-latest, ubuntu-latest] | |
ocaml-version: [ '5.2.0', '4.14.0' ] | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Cache pip | |
uses: actions/cache@v2 | |
with: | |
# This path is specific to Ubuntu | |
path: ~/.cache/pip | |
# Look to see if there is a cache hit | |
key: ${{ runner.os }}-pip | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Install Python dependencies | |
run: pip install pylint pycodestyle | |
- name: Install OCaml | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-version }} | |
- name: Install OCaml dependencies | |
run: opam install -t . --deps-only | |
- name: Build and test independently | |
run: opam install -t rpclib rpclib-js rpclib-html rpclib-lwt rpclib-async | |
- name: Run Rpc and Ppx_deriving_rpc Tests | |
run: opam exec -- dune runtest -p ppx_deriving_rpc | |
- name: Build and run Examples | |
run: opam exec -- dune build @runexamples -p ppx_deriving_rpc |