Add UI #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
paths: | |
- ".github/**" | |
- "ragna/**" | |
- "tests/**" | |
- "environment.yml" | |
- "pyproject.toml" | |
jobs: | |
importable: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-env | |
with: | |
optional-dependencies: "false" | |
- name: Check if all public packages are importable | |
run: python tests/test_importable.py | |
unit: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-env | |
- name: Run unit tests | |
run: pytest --junit-xml=test-results.xml --durations=25 tests/unit | |
- name: Surface failing tests | |
if: always() | |
uses: pmeier/[email protected] | |
with: | |
path: test-results.xml |