Skip to content
Snippets Groups Projects
Unverified Commit 737d17f3 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix

parent aeec5dfb
No related branches found
No related tags found
No related merge requests found
Pipeline #60940 failed with stages
in 3 minutes and 22 seconds
name: CI
run-name: ${{ github.actor }}
on: [ push ]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install everything
run: |
sudo apt-get update
sudo apt-get install -y python3-setuptools python3-yaml python3-dev
pip install -U pip pytest coverage pytest-cov Cython setuptools
- name: Before the coverage
run: |
wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
chmod ugo+x test-reporter-latest-linux-amd64
./test-reporter-latest-linux-amd64 before-build
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Test
run: |
python setup.py install
pytest -vv --cov=minijson
env:
DEBUG: '1'
- name: Submit the code coverage
run: |
coverage xml
./test-reporter-latest-linux-amd64 after-build -t coverage.py
./test-reporter-latest-linux-amd64 format-coverage -t coverage.py -o codeclimate.json
./test-reporter-latest-linux-amd64 upload-coverage -i codeclimate.json
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
\ No newline at end of file
...@@ -9,6 +9,9 @@ __pycache__/ ...@@ -9,6 +9,9 @@ __pycache__/
# Distribution / packaging # Distribution / packaging
.Python .Python
build/ build/
*.egg-info
minijson.c
docs/_build/
develop-eggs/ develop-eggs/
dist/ dist/
downloads/ downloads/
......
stages:
- test
- build
pages:
stage: build
image: zoo.smok.co/build/build:pages
before_script:
- pip install --upgrade Cython setuptools pip
- pip install -r requirements.txt
- python setup.py build_ext --inplace
script:
- cd docs
- make html
- cp _build/html public
artifacts:
paths:
- "public"
.test_python:
stage: test
before_script:
- pip install --upgrade Cython setuptools pip coverage nose2
- pip install -r requirements.txt
- python setup.py build_ext --inplace
variables:
CI: "1"
script:
- python -m coverage run -m nose2 -vv -F
- python -m coverage report
coverage: /TOTAL.*\s+(\d+\%)/
test_python38:
extends: .test_python
image: python:3.8
test_python39:
extends: .test_python
image: python:3.9
test_python310:
extends: .test_python
image: python:3.10
test_python311:
extends: .test_python
image: python:3.11
.build_python:
only:
- master
stage: build
script:
- pip install --break-system-packages --upgrade Cython setuptools pip
- pip install --break-system-packages -r requirements.txt
- python setup.py bdist_wheel
- cp dist/*.whl .
artifacts:
paths:
- "*.whl"
build_python38:
extends: .build_python
image: python:3.8
build_python39:
extends: .build_python
image: python:3.9
build_python310:
extends: .build_python
image: python:3.10
build_python311:
extends: .build_python
image: python:3.11
build_python311_armv7l:
extends: .build_python
image: zoo.smok.co/build/build:armv7l-python311
Changelog Changelog
========= =========
v3.1.0
------
Moved entirely to SMOKs' build architecture.
v3.0.1 v3.0.1
------ ------
......
# coding: utf-8 # coding: utf-8
[metadata] [metadata]
version = 3.0.1 version = 3.1.0
name = minijson name = minijson
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8 long_description_content_type = text/markdown; charset=UTF-8
...@@ -12,8 +12,8 @@ description = A library for serializing JSON in a small binary format ...@@ -12,8 +12,8 @@ description = A library for serializing JSON in a small binary format
url = https://github.com/smok-serwis/minijson url = https://github.com/smok-serwis/minijson
project_urls = project_urls =
Documentation = https://minijson.readthedocs.io/ Documentation = https://minijson.readthedocs.io/
Code = https://github.com/smok-serwis/minijson Code = https://git.dms-serwis.com.pl/smokserwis/minijson
Issue tracker = https://github.com/smok-serwis/minijson/issues Issue tracker = https://git.dms-serwis.com.pl/smokserwis/minijson/-/issues
classifier = classifier =
Development Status :: 5 - Production/Stable Development Status :: 5 - Production/Stable
Programming Language :: Python Programming Language :: Python
......
...@@ -10,12 +10,12 @@ from setuptools import setup, Extension ...@@ -10,12 +10,12 @@ from setuptools import setup, Extension
directive_defaults = get_directive_defaults() directive_defaults = get_directive_defaults()
directive_defaults['language_level'] = '3' directive_defaults['language_level'] = '3'
macros = [] macros = []
if 'DEBUG' in os.environ: if 'DEBUG' in os.environ or 'CI' in os.environ:
print('Enabling debug mode') print('Enabling debug mode')
directive_defaults['linetrace'] = True directive_defaults['linetrace'] = True
directive_defaults['profiling'] = True directive_defaults['profiling'] = True
directive_defaults['binding'] = True directive_defaults['binding'] = True
macros = [('CYTHON_TRACE', '1')] macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')]
setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)])) setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment