-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ambitioninc/develop
4.1.0
- Loading branch information
Showing
11 changed files
with
129 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# copied from django-cte | ||
name: localized_recurrence tests | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master,develop] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ['3.7', '3.8', '3.9'] | ||
# Time to switch to pytest or nose2? | ||
# nosetests is broken on 3.10 | ||
# AttributeError: module 'collections' has no attribute 'Callable' | ||
# https://github.com/nose-devs/nose/issues/1099 | ||
django: | ||
- 'Django~=3.2.0' | ||
- 'Django~=4.0.0' | ||
- 'Django~=4.1.0' | ||
- 'Django~=4.2.0' | ||
experimental: [false] | ||
exclude: | ||
- python: '3.7' | ||
django: 'Django~=4.0.0' | ||
- python: '3.7' | ||
django: 'Django~=4.1.0' | ||
- python: '3.7' | ||
django: 'Django~=4.2.0' | ||
|
||
services: | ||
postgres: | ||
image: postgres:latest | ||
env: | ||
POSTGRES_DB: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup | ||
run: | | ||
python --version | ||
pip install --upgrade pip wheel setuptools | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-testing.txt | ||
pip install "${{ matrix.django }}" | ||
pip freeze | ||
- name: Run tests | ||
env: | ||
DB_SETTINGS: >- | ||
{ | ||
"ENGINE":"django.db.backends.postgresql", | ||
"NAME":"localized_recurrence", | ||
"USER":"postgres", | ||
"PASSWORD":"postgres", | ||
"HOST":"localhost", | ||
"PORT":"5432" | ||
} | ||
run: | | ||
coverage run manage.py test localized_recurrence | ||
coverage report --fail-under=100 | ||
continue-on-error: ${{ matrix.experimental }} | ||
- name: Check style | ||
run: flake8 localized_recurrence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '4.0.0' | ||
__version__ = '4.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ coverage | |
coveralls | ||
django-nose | ||
django-dynamic-fixture | ||
mock | ||
flake8 | ||
psycopg2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Django>=3.2 | ||
ambition-utils>=3.1.1 | ||
fleming>=0.6.0 | ||
python-dateutil | ||
pytz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters