Skip to content

[Snyk] Security upgrade fonttools from 4.38.0 to 4.43.0 #27

[Snyk] Security upgrade fonttools from 4.38.0 to 4.43.0

[Snyk] Security upgrade fonttools from 4.38.0 to 4.43.0 #27

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: [ self-hosted, linux, x64 ]
strategy:
matrix:
python-version: [ "pypy3.9", "3.9" ]
# "pypy3.10", "3.10", "3.11", "3.12"
steps:
- name: Fix elasticsearch docker
run: |
docker rm -f es1 2> /dev/null || true
docker network remove elastic 2>/dev/null || true
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.2.0
security-enabled: false
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
ES_USER: elastic
ES_PASS: changeme
ES_HOST: localhost
ES_PORT: 9200
run: |
pip install pytest pytest-cov
pytest tests --import-mode=append --ignore=tests/test_large.py --junitxml=junit/test-results.xml --cov=elastichash --cov-report=xml --cov-report=html
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}