Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cawal committed Sep 9, 2024
1 parent ce18b02 commit 8fbf3c0
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 25 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Integration - liber-restless

on: [push]

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
fail-fast: false
strategy:
matrix:
python-version: ["3.8", "3.9","3.10","3.11"]
name: Tests on ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python and Tox
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Upgrade pip
# Update pip to a stable version in the future when pip-compile fix its
# issue with pip
run: python3 -m pip install --upgrade 'pip<24'
- name: Install Dependencies
run: |
python setup.py develop &&
pip install -r requirements-dev.txt
# pip-compile &&
# pre-commit install
#- name: Run pre-commit
# run: pre-commit run --all-files
- name: Run tests using Tox
run: tox
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ htmlcov
*.swp
.idea/
*.whl
.venv
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ python:
- "pypy3"

env:
- DJANGO="2.2"
- DJANGO="3.0"
- DJANGO="3.1"
- DJANGO="3.2"
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
tox>=4.6.4,<5.0
29 changes: 5 additions & 24 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
[tox]
envlist =
py{36,37,38,39,py}-{dj22,dj30,dj31,dj32}-{fl10,fl11,fl20}
python-{dj30,dj31,dj32,dj42}
python-{fl10,fl11,fl20}

[testenv]
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
pypy: pypy
python: python
deps =
six
pytest
Expand All @@ -19,28 +18,10 @@ deps =
fl10: Flask>=1.0
fl11: Flask>=1.1
fl20: Flask>=2.0
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj42: Django>=4.2,<4.3
commands =
python --version
pytest --cov=restless

[travis]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
pypy: pypy

[travis:env]
DJANGO =
2.2: dj22
3.0: dj30
3.1: dj31
3.2: dj32
FLASK =
1.0: fl10
1.1: fl11
2.0: fl20

0 comments on commit 8fbf3c0

Please sign in to comment.