Closed luciotorre closed 10 months ago
diff --git a/.github/workflows/run-tox.yml b/.github/workflows/run-tox.yml new file mode 100644 index 0000000..fdc5d43 --- /dev/null +++ b/.github/workflows/run-tox.yml @@ -0,0 +1,36 @@ +name: Run tox + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + tests: + name: tox on ${{ matrix.python-version }} + runs-on: ubuntu-latest + env: + USING_COVERAGE: '3.6,3.8,3.9,3.10' + + strategy: + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -VV + python -m site + python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade coverage[toml] tox tox-gh-actions + + - name: Run tox targets for ${{ matrix.python-version }} + run: python -m tox + diff --git a/test_requirements.txt b/test_requirements.txt index 0ffeddd..8d771c5 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -1,5 +1,4 @@ -coverage==3.7.1 -nose==1.3.7 -flake8 -testtools==1.8.0 - +coverage +nose +testtools +ruff diff --git a/tox.ini b/tox.ini index ce694d9..604af69 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] skipsdist=True -envlist = py27, py36, py37, py38, py39, py310, lint +envlist = py27, py36, py37, py38, py39, py310, py311, lint skip_missing_interpreters = True [testenv] @@ -8,4 +8,4 @@ commands = python -m unittest discover -v tests deps = -r{toxinidir}/test_requirements.txt [testenv:lint] -commands = flake8 --max-line-length=160 {toxinidir}/tritcask/ {toxinidir}/tests/ +commands = ruff {toxinidir}/tritcask/ {toxinidir}/tests/