no-heroku test, plesae ignore #130
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 gemstone --mount type=bind,source="$(pwd)"/../gemstone,target=/gemstone keyiz/garnet-flow bash | |
- name: Install deps 🛠️ | |
shell: bash | |
run: | | |
docker exec -i gemstone bash -c "pip install -e /gemstone" | |
docker exec -i gemstone bash -c "pip install pytest==7.1.1 python-coveralls" | |
docker exec -i gemstone bash -c "pip install pytest-cov pytest-pycodestyle" | |
- name: Run tests ⚙️ | |
shell: bash | |
run: | | |
docker exec -i gemstone bash -c 'gemstone/.github/scripts/run.sh' |