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

Replace tox with gh-actions matrix #77

Merged
merged 1 commit into from
Dec 19, 2023
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
30 changes: 22 additions & 8 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
name: Lint
name: Style

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install tox
run: pip install tox
- name: Run style
run: tox -e style
python-version: 3.11
- name: Install dependencies
run: |
pip install -U pip
pip install black flake8 pylint
pip install -r test_requirements.txt
pip install .
- name: Run black
run: |
black --check .
- name: Run flake8
run: |
flake8 --max-line-length=88
- name: Run pylint
run: |
pylint stea tests
20 changes: 12 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ ubuntu-latest ]
python-version: ["3.8", "3.9", "3.10", "3.11"]
berland marked this conversation as resolved.
Show resolved Hide resolved
os: [ubuntu-latest]
include:
- python-version: 3.8
os: macos-latest

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: "Install dependencies"
run: python -m pip install tox tox-gh-actions
- name: Install dependencies
run: |
pip install -U pip
pip install -r test_requirements.txt
pip install .
- name: "Run tox targets on ${{ matrix.os }} for ${{ matrix.python-version }}"
run: tox
- name: Test with pytest
run: |
pytest
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
31 changes: 0 additions & 31 deletions tox.ini

This file was deleted.