Skip to content

chore(deps): Fix dependencies #862

chore(deps): Fix dependencies

chore(deps): Fix dependencies #862

Workflow file for this run

name: build
on: [push, pull_request]
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 25432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_EPIGRAPH_USER: dev_epigraph
POSTGRES_EPIGRAPH_PASSWORD: dev_epigraph
POSTGRES_EPIGRAPH_DB: dev_epigraphhub
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Create environment variables file
run: |
cd docker
envsubst < .env.tpl > .env
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: epigraphhubpy
use-mamba: true
miniforge-variant: Mambaforge
- name: Install dependencies
run: poetry install --all-extras
- name: Create config file
run: makim config.create-file
- name: start up containers-sugar
run: |
containers-sugar build
containers-sugar start
makim containers.wait --service postgres
- name: Run tests
run: makim tests.unittest --extra="--disable-warnings"
- name: Linter
run: makim tests.linter
- name: Run safety checks
# https://github.com/numpy/numpy/issues/19038
run: makim tests.check-safety || true
- name: teardown containers-sugar
run: containers-sugar stop
- name: Check if PR Title contains semantic-release tag
if: ${{ github.event_name == 'pull_request' && always() }}
run: bash scripts/ci/pr-title-linter.sh "${{ github.event.pull_request.title }}"