Replace dependency @material-ui/core with @mui/material #1174
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 | |
# yamllint disable-line rule:truthy | |
on: [push, pull_request] | |
jobs: | |
setup-venv: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: syphar/restore-virtualenv@v1.2 | |
id: venv-cache | |
- uses: abatilo/actions-poetry@v2.1.4 | |
if: steps.setup-venv.outputs.cache-hit != 'true' | |
- name: Install Python dependencies | |
run: poetry install -vv | |
if: steps.setup-venv.outputs.cache-hit != 'true' | |
backend-build: | |
runs-on: ubuntu-latest | |
needs: setup-venv | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: syphar/restore-virtualenv@v1.2 | |
id: venv-cache | |
- run: poetry run flake8 | |
- run: poetry run black --check . | |
- run: poetry run pyre --noninteractive | |
- run: poetry run green --run-coverage | |
- run: poetry run coverage xml -o backend-coverage.xml | |
- uses: actions/upload-artifact@v2 | |
if: matrix.python-version == '3.8' | |
with: | |
name: backend-coverage | |
path: backend-coverage.xml | |
frontend-build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
- run: yarn install | |
- run: yarn lint | |
- run: yarn run prettier --check src | |
- run: yarn run tsc | |
- run: yarn build | |
- run: yarn test --coverage --collectCoverageFrom "src/**/*" | |
- run: mv coverage/coverage-final.json ../frontend-coverage.json | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: frontend-coverage | |
path: frontend-coverage.json | |
codecov: | |
runs-on: ubuntu-latest | |
needs: [backend-build, frontend-build] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Retrieve backend test coverage | |
uses: actions/download-artifact@v2 | |
with: | |
name: backend-coverage | |
- name: Retrieve frontend test coverage | |
uses: actions/download-artifact@v2 | |
with: | |
name: frontend-coverage | |
- uses: codecov/codecov-action@v2 | |
with: | |
files: ./backend-coverage.xml,./frontend-coverage.json |