Routine commit #152
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: CI Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
git submodule sync --recursive | |
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
- name: Pull and run docker 🐋 | |
shell: bash | |
run: | | |
docker pull keyiz/garnet-flow | |
docker run -it -d --name canal --mount type=bind,source="$(pwd)"/../canal,target=/canal keyiz/garnet-flow bash | |
- name: Install deps 🛠️ | |
shell: bash | |
run: | | |
docker exec -i canal bash -c "pip install -r /canal/requirements.txt" | |
docker exec -i canal bash -c "pip install -e /canal" | |
docker exec -i canal bash -c "pip install pytest==7.1.1 python-coveralls" | |
docker exec -i canal bash -c "pip install pytest-cov pytest-pycodestyle" | |
- name: Run tests ⚙️ | |
shell: bash | |
run: | | |
docker exec -i canal bash -c 'canal/.github/scripts/run.sh' |