Merge remote-tracking branch 'github/master' into support_202307

This commit is contained in:
Stefan Pratter
2023-08-14 08:50:16 +00:00
7 changed files with 31 additions and 226 deletions
+3 -27
View File
@@ -3,39 +3,15 @@ name: tests
on: [push, pull_request]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: timeout 10s poetry run pip --version || rm -rf .venv
# install dependencies if cache does not exist
- name: Check cache and install dependencies
run: poetry install --no-interaction --no-root
- name: Install virtualenv from poetry
uses: 20c/workflows/poetry@v1
- name: Run linters
run: |
poetry run isort .
poetry run black . --check
# poetry run flake8 peeringdb_server
poetry run pre-commit run --all-files
test:
needs: linting
runs-on: ubuntu-latest
+8 -8
View File
@@ -5,7 +5,7 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
@@ -32,10 +32,10 @@ repos:
entry: poetry run black .
language: system
pass_filenames: false
- repo: local
hooks:
- id: system
name: flake8
entry: poetry run flake8 peeringdb_server
language: system
pass_filenames: false
# - repo: local
# hooks:
# - id: system
# name: flake8
# entry: poetry run flake8 peeringdb_server
# language: system
# pass_filenames: false
+1 -1
View File
@@ -58,7 +58,7 @@ services:
#
# expects a https://github.com/peeringdb/django-peeringdb source checkout in the parent
# directory
# - ../../../django-peeringdb/src/django_peeringdb:/srv/www.peeringdb.com/venv/lib/python3.9/site-packages/django_peeringdb:Z
- ../../../django-peeringdb/src/django_peeringdb:/srv/www.peeringdb.com/venv/lib/python3.9/site-packages/django_peeringdb:Z
networks:
- peeringdb_network
+1 -1
View File
@@ -25,7 +25,7 @@ ARG run_deps=" \
libgcc \
"
FROM python:3.9-alpine as base
FROM python:3.11-alpine as base
ARG virtual_env=/srv/www.peeringdb.com/venv
+3 -2
View File
@@ -1,8 +1,9 @@
# PeeringDB
[![Travis CI](https://img.shields.io/travis/peeringdb/peeringdb.svg?maxAge=3600)](https://travis-ci.org/peeringdb/peeringdb)
[![Codecov](https://img.shields.io/codecov/c/github/peeringdb/peeringdb/master.svg?maxAge=3600)](https://codecov.io/github/peeringdb/peeringdb)
[![tests](https://github.com/peeringdb/peeringdb/actions/workflows/tests.yml/badge.svg)](https://github.com/peeringdb/peeringdb/actions/workflows/tests.yml)
[![CodeQL](https://github.com/peeringdb/peeringdb/actions/workflows/codeql.yml/badge.svg)](https://github.com/peeringdb/peeringdb/actions/workflows/codeql.yml)
[![codecov](https://codecov.io/gh/peeringdb/peeringdb/branch/master/graph/badge.svg?token=zYAhZzltxV)](https://codecov.io/gh/peeringdb/peeringdb)
[PeeringDB](https://www.peeringdb.com/) provides a scalable way to publish
Generated
+14 -186
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "peeringdb_server"
version = "2.49.0-beta"
version = "2.49.0"
description = "source code for PeeringDB.com"
readme = "README.md"
repository = "https://github.com/peeringdb/peeringdb"