π Update frontex certificate & enable unsecure negations #1399
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: FragDenStaat CI | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black==22.6.0 isort==5.10.1 flake8==5.0.4 flake8-bugbear==21.4.3 | |
yarn install | |
- name: Run flake8 | |
run: flake8 fragdenstaat_de --statistics | |
- name: Run black | |
run: black --check fragdenstaat_de | |
- name: Run isort | |
run: isort --check fragdenstaat_de | |
- name: Run eslint | |
run: yarn lint | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: setup.py | |
- name: Install system-level dependencies | |
run: sudo apt-get update && sudo apt-get install libxml2-dev libxslt1-dev python3-dev libgdal-dev gdal-bin libmagic-dev libmagickwand-dev gettext libpoppler-cpp-dev | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip pip-tools | |
pip-sync requirements-dev.txt | |
playwright install --with-deps chromium | |
pip install -e . | |
bash devsetup.sh frontend | |
- name: Build frontend | |
run: yarn run build | |
- name: Compile translations | |
run: python manage.py compilemessages | |
- name: Run flake8 and tests | |
run: make testci | |
env: | |
DATABASE_URL: postgis://postgres:postgres@localhost/fragdenstaat_de | |
services: | |
postgres: | |
image: postgis/postgis:14-3.3 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: fragdenstaat_de | |
ports: | |
- 5432:5432 | |
# needed because the postgres container does not provide a healthcheck | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1 | |
options: -e "discovery.type=single-node" --expose 9200 --health-cmd "curl localhost:9200/_cluster/health" --health-interval 10s --health-timeout 5s --health-retries 10 | |
ports: | |
- '9200:9200' |