Skip to content

Commit

Permalink
Merge pull request #11 from MarcoGorelli/pytest-in-ci
Browse files Browse the repository at this point in the history
pytest in ci
  • Loading branch information
MarcoGorelli authored Mar 17, 2024
2 parents eb2ccb0 + e47a3dc commit 34c5967
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci

on:
pull_request:
push:
branches: [main]

jobs:
tox:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: |
~/.cache/pip
$RUNNER_TOOL_CACHE/Python/*
~\AppData\Local\pip\Cache
key: ${{ runner.os }}-build-${{ matrix.python-version }}
- name: install-reqs
run: python -m pip install --upgrade tox virtualenv setuptools pip -r requirements-dev.txt
- name: Run pytest
run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,5 @@ Indeed, you may suspect that.
## Why "Narwhals"?

Because they are so awesome.

Thanks to [Olha Urdeichuk](https://www.fiverr.com/olhaurdeichuk) for the illustration!
Binary file added docs/assets/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
covdefaults
pandas
polars
pre-commit
pyarrow
pytest
pytest-cov

0 comments on commit 34c5967

Please sign in to comment.