mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
update build (#1421)
* update badges * poetry lock * bump python to 3.11 * update pre-commit and linting action * disable flake out from new version
This commit is contained in:
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
|
||||
# PeeringDB
|
||||
|
||||
[](https://travis-ci.org/peeringdb/peeringdb)
|
||||
[](https://codecov.io/github/peeringdb/peeringdb)
|
||||
[](https://github.com/peeringdb/peeringdb/actions/workflows/tests.yml)
|
||||
[](https://github.com/peeringdb/peeringdb/actions/workflows/codeql.yml)
|
||||
[](https://codecov.io/gh/peeringdb/peeringdb)
|
||||
|
||||
|
||||
[PeeringDB](https://www.peeringdb.com/) provides a scalable way to publish
|
||||
|
805
poetry.lock
generated
805
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
|
Reference in New Issue
Block a user