Skip to content

Commit

Permalink
Merge pull request #3 from t-sasatani/feat-initpytest
Browse files Browse the repository at this point in the history
Fix initial pytest settings
  • Loading branch information
t-sasatani authored Jul 10, 2024
2 parents 7add4f3 + 980a3cb commit 7989c6f
Show file tree
Hide file tree
Showing 11 changed files with 1,333 additions and 137 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

jobs:
pytest:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -19,37 +19,16 @@ jobs:
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: false
job-summary: true

- name: Upload results
uses: actions/upload-artifact@v3
with:
name: test_results
path: results/*.xml

- name: Download results
uses: actions/download-artifact@v3
with:
name: test_results
path: artifacts

- name: display results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/*.xml
run: pip install -e .[tests]

- name: run pytest
run: python -m pytest
File renamed without changes.
117 changes: 56 additions & 61 deletions examples/measurement_sample.ipynb

Large diffs are not rendered by default.

107 changes: 105 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
packages = [{include = "wpt_tools"}]

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
python = ">=3.10,<3.13"
numpy = "^1.24.2"
matplotlib = "^3.7.0"
scipy = "^1.12"
Expand All @@ -17,7 +17,9 @@ pillow = "^10.2.0"
scikit-rf = "^0.32.0"
pydantic = "^2.8.2"
toml = "^0.10.2"
colorlog = "^6.8.2"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"

[tool.poetry.group.dev.dependencies]
ipykernel = "^6.26.0"
Expand All @@ -29,7 +31,6 @@ myst-parser = "^3.0.1"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.poetry.group.docs.dependencies]
sphinx-rtd-theme = "^2.0.0"
sphinx = "^7.3.7"
Expand Down
Loading

0 comments on commit 7989c6f

Please sign in to comment.