Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/_tests-on-pr-no-codecov-no-headless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests on PR

on:
workflow_call:
inputs:
python_version:
description: 'Python version for Conda environment'
default: 3.13
required: false
type: number

jobs:
validate:
defaults:
run:
shell: bash -l {0}

runs-on: ubuntu-latest
steps:
- name: Check out project
uses: actions/checkout@v4

- name: Initialize miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: true
environment-file: environment.yml
auto-activate-base: false
python-version: ${{ inputs.python_version }}

- name: Conda config
run: >-
conda config --set always_yes yes
--set changeps1 no

- name: Install package and requirements
run: |
conda install --file requirements/conda.txt
conda install --file requirements/test.txt
python -m pip install . --no-deps

- name: Run unit tests
run: |
pytest --cov
coverage report -m
codecov
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Please read the following guidelines for contributors:

How are the files in the repository maintained and used?

- We create PRs to `main` and then manually merge from `main` to `v0`.
- We then use reusable scripts located in the `v0` branch.

Where are the `.github/workflows` used?

- `_tests-on-pr.yml` is used in `scikit-package`.
- `_tests-on-pr-no-codecov-no-headless.yml` is used in `skpkg-package-system`. It does not include Codecov, builds, or headless testing.