Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions and python CI #61

Merged
merged 3 commits into from
Jun 27, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS, Debian, Ubuntu, Windows10]
- Python version [e.g. 3.8]
- Python version [e.g. 3.11]

**Additional context**
Add any other context about the problem here.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Install Python dependencies
run: pip install black flake8

- name: Run linters
uses: samuelmeuli/lint-action@v1
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
python-version: [3.11]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -31,7 +31,7 @@ jobs:
run: python setup.py sdist bdist_wheel
- name: Run twine check
run: twine check dist/*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: tox-gh-actions-dist
path: dist
8 changes: 4 additions & 4 deletions .github/workflows/tox_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
- name: Git clone
uses: actions/checkout@v2

- name: Set up Python ${{ env.default_python || '3.9' }}
uses: actions/setup-python@v2
- name: Set up Python ${{ env.default_python || '3.11' }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.default_python || '3.9' }}"
python-version: "${{ env.default_python || '3.11' }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'setup.py') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install xmllint
run: sudo apt install coinor-cbc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Authors
* Amedeo Ceruti
* Birgit Schachler
* Caroline Möller
* Florian Maurer
* Guido Plessmann
* Hendrik Huyskens
* Jann Launer
Expand Down
32 changes: 10 additions & 22 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ envlist =
clean,
check,
docs,
py36
py37
py38
py39
py310
py311
py3-cover,
pypy3,
report

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
basepython =
Expand Down Expand Up @@ -83,19 +82,8 @@ commands = coverage erase
skip_install = true
deps = coverage

[testenv:py36]
basepython = {env:TOXPYTHON:python3.6}
setenv =
{[testenv]setenv}
usedevelop = true
commands =
{posargs:pytest --cov --cov-report=term-missing -vv}
deps =
{[testenv]deps}
pytest-cov

[testenv:py37]
basepython = {env:TOXPYTHON:python3.7}
[testenv:py39]
basepython = {env:TOXPYTHON:python3.9}
setenv =
{[testenv]setenv}
usedevelop = true
Expand All @@ -105,8 +93,8 @@ deps =
{[testenv]deps}
pytest-cov

[testenv:py38]
basepython = {env:TOXPYTHON:python3.8}
[testenv:py310]
basepython = {env:TOXPYTHON:python3.10}
setenv =
{[testenv]setenv}
usedevelop = true
Expand All @@ -116,8 +104,8 @@ deps =
{[testenv]deps}
pytest-cov

[testenv:py39]
basepython = {env:TOXPYTHON:python3.9}
[testenv:py311]
basepython = {env:TOXPYTHON:python3.11}
setenv =
{[testenv]setenv}
usedevelop = true
Expand Down
Loading