build(deps): bump gitpython from 3.1.27 to 3.1.41 in /graph-db/extractor #316
Workflow file for this run
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: Integration Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
appserver: | |
name: Appserver Linting and Testing | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_COMPOSE_CMD: docker compose -f docker-compose.ci-test.yml | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create environment variable to pass in GitHub hash for Docker Compose | |
run: echo "GITHUB_HASH=${{ github.sha }}" >> .env | |
- name: Build Docker image | |
id: build | |
run: | | |
${{ env.DOCKER_COMPOSE_CMD }} build --build-arg DEV=True appserver | |
echo "image_hash=$(docker images | awk '{print $3}' | awk 'NR==2')" | tee $GITHUB_OUTPUT | |
- name: Migration Integrity Check | |
run: docker run ${{ steps.build.outputs.image_hash }} bin/migration-integrity-check | |
- name: Linting and code style | |
run: |- | |
docker run ${{ steps.build.outputs.image_hash }} flake8 . | |
docker run ${{ steps.build.outputs.image_hash }} mypy . | |
docker run ${{ steps.build.outputs.image_hash }} pycodestyle . | |
- name: Bring up containers and wait for webserver to be ready | |
timeout-minutes: 10 | |
run: |- | |
${{ env.DOCKER_COMPOSE_CMD }} up -d | |
${{ env.DOCKER_COMPOSE_CMD }} exec -T appserver bin/wait-for-flask | |
- name: Run PyTest | |
run: ${{ env.DOCKER_COMPOSE_CMD }} exec -T appserver pytest tests -p no:warnings | |
- name: Show Docker logs | |
if: ${{ failure() }} | |
run: ${{ env.DOCKER_COMPOSE_CMD }} logs --timestamps | |
client: | |
name: Client Linting and Testing | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: client | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: yarn | |
cache-dependency-path: client/yarn.lock | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build application | |
run: yarn build | |
- name: Run linter | |
run: yarn lint-ci | |
- name: Run tests | |
run: yarn test |