Skip to content

Commit

Permalink
Replace tox with gh-actions matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 18, 2023
1 parent 34ca69c commit f3cf9c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,35 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ ubuntu-latest ]
python-version: ["3.8", "3.10", "3.11", "3.12"]
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 .
pip install -r test_requirements.txt
- name: "Run tox targets on ${{ matrix.os }} for ${{ matrix.python-version }}"
run: tox
- name: Run black
run: |
black --check .
- name: Run flake8
run: |
flake8
- name: Run pylint
run: |
pylint stea tests
- name: Test with pytest
run: |
pytest
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down

0 comments on commit f3cf9c9

Please sign in to comment.