Skip to content

Commit

Permalink
Merge branch 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Jan 2, 2023
2 parents 78a07a2 + eb28892 commit 704a078
Show file tree
Hide file tree
Showing 79 changed files with 3,502 additions and 1,880 deletions.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
parallel = true
source =
colander

[paths]
source =
src/colander
*/src/colander
*/site-packages/colander

[report]
show_missing = true
precision = 2
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
ignore =
# E731: do not assign a lambda expression, use a def
E731
# W503: line break before binary operator (flake8 is not PEP8 compliant)
W503
# W504: line break after binary operator (flake8 is not PEP8 compliant)
W504
exclude =
colander/compat.py
show-source = True
max-line-length = 79
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
85 changes: 85 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Build and test

on:
# Only on pushes to main or one of the release branches we build on push
push:
branches:
- main
- "[0-9].[0-9]+-branch"
tags:
# Build pull requests
pull_request:

jobs:
test:
strategy:
matrix:
py:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "pypy-3.8"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
architecture:
- x64
- x86
exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
architecture: x86
- os: "macos-latest"
architecture: x86
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
coverage:
runs-on: ubuntu-latest
name: Validate coverage
steps:
- uses: actions/checkout@v3
- name: Setup python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64

- run: pip install tox
- run: tox -e py310,coverage
docs:
runs-on: ubuntu-latest
name: Build the documentation
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e docs
lint:
runs-on: ubuntu-latest
name: Lint the package
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e lint
24 changes: 4 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
*.egg
*.egg-info
*.egg-info/
*.pyc
*$py.class
*.pt.py
*.txt.py
*~
*.swp
env*/
.coverage
.coverage.*
.tox/
py*-cover.xml
coverage-*.xml
nosetests*.xml
env26/
env25/
env24/
env27/
jyenv/
pypyenv/
build/
dist/
build/
coverage.xml
distribute*.gz
venv/
env*/
8 changes: 0 additions & 8 deletions .hgignore

This file was deleted.

33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 704a078

Please sign in to comment.