Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Dec 18, 2024
1 parent aba7f1d commit 1fff8e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10, 3.11, 3.12, 3.x, pypy3]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.x", "pypy3"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install flake8 pytest pytz tzlocal pymodbus pylogix
pip install 'argparse; python_version < "2.7"'
pip install 'configparser; python_version < "3.0"'
pip install 'ipaddress; python_version < "3.0"'
python3 -m pip install --upgrade pip
python3 -m pip install .[all,tests]
- name: Lint with flake8
run: |
make analyze || true
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ VENV = $(VENV_DIR)/$(VENV_NAME)
VENV_OPTS =

# To see all pytest output, uncomment --capture=no
PYTESTOPTS=-vv --capture=no --log-cli-level=INFO # 25 == NORMAL 23 == DETAIL
PYTESTOPTS=-v --capture=no --log-cli-level=25 # INFO 25 == NORMAL 23 == DETAIL

PY_TEST=TZ=$(TZ) $(PY) -m pytest $(PYTESTOPTS)
PY2TEST=TZ=$(TZ) $(PY2) -m pytest $(PYTESTOPTS)
Expand Down

0 comments on commit 1fff8e8

Please sign in to comment.