Skip to content

Commit

Permalink
Merge pull request #515 from tisnik/pr-check
Browse files Browse the repository at this point in the history
PR check
  • Loading branch information
tisnik authored Oct 23, 2023
2 parents 76be67d + 8ce08ee commit caf3817
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pr_approval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pytest

on:
- push
- pull_request

jobs:
pytest:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade setuptools
- run: pip install --upgrade wheel
- run: pip install pycodestyle
- run: pip install pydocstyle
- run: pip install pytest-cov
- run: pip install --upgrade importlib-metadata
- run: pip install behave
- run: pip install semver
- name: Style checks
run: make style
- name: Docstrings checks
run: make doc-check
- name: Unit tests
run: make unit_tests
- name: Unit tests coverage
run: make coverage
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ smart-proxy-tests: ## Run BDD tests for the Insights Results Smart Proxy service
smart-proxy-code-coverage: ## Compute code coverage for Smart Proxy service
./smart_proxy_tests.sh coverage

style: code-style docs-style shellcheck ## Perform all style checks
style: code-style docs-style ## Perform all style checks

code-style: ## Check code style for all Python sources from this repository
python3 tools/run_pycodestyle.py
Expand Down

0 comments on commit caf3817

Please sign in to comment.