Skip to content

readme batch for pytest #3

readme batch for pytest

readme batch for pytest #3

Workflow file for this run

# name: Pytest
# on: [pull_request, push]
# concurrency:
# group: ${{ github.workflow }}-${{ github.head_ref }}
# cancel-in-progress: true
# env:
# # https://github.com/pytest-dev/pytest/issues/2042#issuecomment-429289164
# PY_IGNORE_IMPORTMISMATCH: 1
# jobs:
# pytest:
# strategy:
# matrix:
# os: [ubuntu-latest, macos-14]
# deps:
# - label: Latest
# fail-fast: true
# name: ${{ matrix.os }} • ${{ matrix.deps.label }}
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash -l {0}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup environment
# uses: mamba-org/setup-micromamba@v2
# with:
# environment-file: environment.yml
# environment-name: SenSE
# # persist on the same day.
# cache-environment-key: environment-${{ steps.date.outputs.date }}
# cache-downloads-key: downloads-${{ steps.date.outputs.date }}
# generate-run-shell: false
# create-args: ${{ matrix.deps.spec }}
# condarc: |
# channels:
# - conda-forge
# - name: Install
# run: |
# python -m pip install --no-deps \
# python -m pip install --no-deps .
# - name: Test
# run: |
# pytest -n0 -vv
# # https://community.codecov.com/t/numba-jitted-methods-are-not-captured-by-codecov/2649
# # - name: Coverage report
name: Pytest
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Run tests
run: pytest