Skip to content
This repository was archived by the owner on Mar 11, 2023. It is now read-only.
/ Potodo Public archive
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
26 changes: 17 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests

on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -10,30 +11,37 @@ on:

jobs:
test:
name: Run tox on ${{ matrix.os }} for Python ${{ matrix.tox.py_version }}
name: Run tox on ${{ matrix.os }} for Python ${{ matrix.py_version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest]
tox:
py_version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
include:
- py_version: '3.6'
env: py36
- py_version: '3.7'
env: py37
- py_version: '3.8'
env: py38,flake8,mypy,black
env: py38
- py_version: '3.9'
env: py39
- py_version: '3.10'
env: py310
- py_version: '3.11'
env: py311
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.tox.py_version }}
- uses: actions/cache@v2
python-version: ${{ matrix.py_version }}
- uses: actions/cache@v3
with:
path: .tox
key: ${{ matrix.os }}-${{ matrix.tox.python-version }}-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements-dev.txt') }}
key: ${{ matrix.os }}-${{ matrix.py_version }}-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements-dev.txt') }}
- name: Install tox
run: python3 -m pip install tox
- name: Run tox
run: tox -q -p all -e ${{ matrix.tox.env }}
run: tox -q -p all -e ${{ matrix.env }},flake8,mypy,black
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ skip_covered = True
show_missing = True

[tox]
envlist = py3{6,7,8,9,10}, flake8, mypy, black, coverage
envlist = py3{6,7,8,9,10,11}, flake8, mypy, black, coverage
skip_missing_interpreters = True

[testenv]
Expand All @@ -24,7 +24,7 @@ setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}

[testenv:coverage]
depends = py38, py39, py310
depends = py38, py39, py310, py311
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
Expand Down