Update chartlets-ci.yml #5
Workflow file for this run
This file contains hidden or 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: Chartlets CI workflow | |
| on: [push] | |
| jobs: | |
| backend_chartlets-py: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git-checkout chartlets | |
| uses: actions/checkout@v4 | |
| - name: Set up Micromamba | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: chartlets.py/environment.yml | |
| - name: Run unit tests | |
| shell: bash -l {0} | |
| run: | | |
| cd chartlets.py | |
| pytest | |
| frontend_react-ts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git-checkout chartlets | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18.x' | |
| - name: Install dependencies | |
| run: | | |
| cd chartlets.js | |
| npm install | |
| - name: Linter | |
| run: | | |
| cd chartlets.js | |
| npm run lint | |
| - name: Run frontend tests | |
| run: | | |
| cd chartlets.js | |
| npm run test | |
| - name: Build frontend application | |
| run: | | |
| cd chartlets.js | |
| npm run build |