Skip to content

Bump tar from 6.1.11 to 6.2.1 in /frontend #551

Bump tar from 6.1.11 to 6.2.1 in /frontend

Bump tar from 6.1.11 to 6.2.1 in /frontend #551

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
ci-backend:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- id: flake8
name: Lint with flake8
- id: ruff
name: Lint with ruff
- id: black
name: Check formatting with black
- id: isort
name: Check import order with isort
- id: mypy
name: Check typing with mypy
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
id: python
with:
python-version: '3.9'
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Restore PIP cache
uses: actions/[email protected]
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-${{ steps.python.outputs.python-version }}-${{ hashFiles('backend/requirements.txt', 'backend/requirements_dev.txt') }}
restore-keys: |
pip-${{ steps.python.outputs.python-version }}-
- name: Set up Python environment
run: |
pip3 install -r backend/requirements.txt -r backend/requirements_dev.txt
pip3 install -e backend
- name: Register problem matchers
run: |
echo "::add-matcher::.github/workflows/matchers/flake8.json"
echo "::add-matcher::.github/workflows/matchers/ruff.json"
echo "::add-matcher::.github/workflows/matchers/isort.json"
echo "::add-matcher::.github/workflows/matchers/mypy.json"
- run: cd backend && flake8 aoiportal
if: ${{ matrix.id == 'flake8' }}
- run: cd backend && ruff aoiportal
if: ${{ matrix.id == 'ruff' }}
- run: cd backend && black --check --diff --color aoiportal
if: ${{ matrix.id == 'black' }}
- run: cd backend && isort --check --diff aoiportal
if: ${{ matrix.id == 'isort' }}
- run: cd backend && mypy aoiportal
if: ${{ matrix.id == 'mypy' }}
ci-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 16
- name: Install dependencies
run: cd frontend && npm ci
- name: Run eslint
run: cd frontend && npm run lint
- name: Run build
run: cd frontend && npm run build