[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #341 from cclauss/patch-1
Browse files Browse the repository at this point in the history
GitHub Action to lint and test Python code
  • Loading branch information
huashengdun committed Apr 5, 2023
2 parents e21b6a2 + c79d4ba commit bf76954
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://beta.ruff.rs
name: python
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --format=github --ignore=F401 --target-version=py38 .
pytest:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"] # , "pypy-3.9"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# - run: pip install --upgrade pip setuptools wheel
- run: pip install pytest -r requirements.txt # cov pytest-cov
- run: pytest # --cov=webssh
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit bf76954

Please sign in to comment.