release: v0.7.0 #208
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: build | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dependencies: ['dev', 'deploy'] | |
steps: | |
# - name: Cancel Previous Runs | |
# uses: styfle/[email protected] | |
# with: | |
# access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Docker compose up | |
run: docker-compose up -d | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
# - name: Use Cache | |
# uses: actions/cache@v2 | |
# with: | |
# path: | | |
# ~/.cache/pip | |
# ~/.cache/pypoetry/virtualenvs | |
# ~/.npm | |
# key: ${{ runner.os }}-pip-venv-${{ hashFiles('**/poetry.lock') }} | |
- name: Bootstrap dev | |
if: ${{ matrix.dependencies == 'dev' }} | |
run: | | |
poetry run ./scripts/bootstrap --ci | |
- name: Bootstrap deploy | |
if: ${{ matrix.dependencies == 'deploy' }} | |
run: | | |
poetry run ./scripts/bootstrap --ci --deploy E2E=yes | |
- name: Run Test | |
run: poetry run ./scripts/test | |
# - name: Upload Coverage ${{ matrix.tests }} | |
# if: ${{ matrix.dependencies == 'locked' }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# COVERALLS_FLAG_NAME: test | |
# COVERALLS_PARALLEL: true | |
# run: poetry run coveralls | |
# | |
# - name: Finished Coverage ${{ matrix.tests }} | |
# if: ${{ matrix.dependencies == 'locked' }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# COVERALLS_PARALLEL_FINISHED: true | |
# run: | | |
# poetry run coveralls --finish |