Skip to content

Commit

Permalink
Add tests in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Nov 5, 2022
1 parent 1f6c9eb commit 2928e71
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,27 @@ jobs:
python-version: "3.9"
- uses: pre-commit/action@v2.0.0
with:
extra_args: --all-files
extra_args: --all-files

tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"

steps:
- uses: actions/checkout@v2
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: Install valgrind
run: sudo apt-get install valgrind -y
- name: Install dependencies
run: pip install .[dev]
- name: Run tests
run: pytest
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ dev = [
"flake8 ~= 5.0.4",
"mypy ~= 0.961",
"pytest ~= 7.0",
"pytest-sugar ~= 0.9.5",
"pytest-cov ~= 4.0.0",
"ruff ~= 0.0.100",
]
Expand Down

0 comments on commit 2928e71

Please # to comment.