Skip to content

Commit

Permalink
Backend upgrade.
Browse files Browse the repository at this point in the history
Issue #252
  • Loading branch information
Wim-De-Clercq committed Oct 14, 2024
1 parent a5ef1ca commit ef47daf
Show file tree
Hide file tree
Showing 20 changed files with 332 additions and 1,173 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

11 changes: 0 additions & 11 deletions .editorconfig

This file was deleted.

17 changes: 9 additions & 8 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[flake8]
inline-quotes = double
application_import_names = crabpy,tests
exclude =
.venv,
./venv,
__pycache__
import-order-style = pycharm
max-line-length = 90
select = C,E,F,W,B,B950
extend-ignore = E203, E501, W503

extend-exclude =
.pytest_cache
filename =
./tests/**.py
./crabpy/**.py
max-line-length = 80
extend-select = B950
extend-ignore = E203,E501,E701
3 changes: 3 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
feature: ['feature/*', 'feat/*']
fix: ['bugfix/*', 'fix/*']
test: test/*
45 changes: 45 additions & 0 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: crabpy tests

on:
push:
paths:
- crabpy/**
- tests/**
- .github/workflows/backend.yaml
- pyproject.toml
- requirements*.txt

env:
CRABPY_INTEGRATION_TESTS: "true"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install python requirements
run: |
pip install pip-tools
pip-sync requirements-ci.txt
pip install -e .
- name: Python tests
run: |
flake8
coverage run --source=crabpy_pyramid -m pytest tests --crab-integration --capakey-integration
- name: Coveralls
uses: coverallsapp/github-action@v2
22 changes: 22 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Labeler
on:
pull_request:
types: [opened]
branches:
- 'develop'
- 'epic'

permissions:
contents: read

jobs:
pr-labeler:
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pip-log.txt
.coverage
.tox
nosetests.xml
.pytest_cache/


# Cache files
Expand All @@ -39,3 +40,6 @@ dogpile_data

# Pycharm
.idea/

# Environments
.venv/
Loading

0 comments on commit ef47daf

Please sign in to comment.