Skip to content

Commit

Permalink
tests: run only style tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Sep 25, 2024
1 parent d9f0299 commit 8d62d65
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI tests via tox

on:
push:
branches:
- '**'

pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: ['3.10', '3.11', '3.12']
python-version: ['3.12']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
python -m pip install poetry poetry poetry-plugin-export
- name: Test with tox
run: tox

11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ skipsdist = True

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, flake8, black, bandit, pip-missing-reqs, pypi
; 3.8: py38
; 3.9: py39
; 3.10: py310
; 3.11: py311
; 3.12: py312, flake8, black, bandit, pip-missing-reqs, pypi
3.12: flake8, black, bandit, pip-missing-reqs, pypi

[base]
python = python3.12
Expand Down

0 comments on commit 8d62d65

Please sign in to comment.