mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-23 13:32:24 +00:00
26 lines
410 B
YAML
26 lines
410 B
YAML
|
name: Unit tests
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ "main" ]
|
||
|
pull_request:
|
||
|
branches: [ "main" ]
|
||
|
|
||
|
permissions:
|
||
|
contents: read
|
||
|
|
||
|
jobs:
|
||
|
unit-tests:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout repo
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Install pip dependencies
|
||
|
run: pip install --editable .
|
||
|
|
||
|
- uses: kivikakk/niar/setup-action@main
|
||
|
|
||
|
- name: Run tests
|
||
|
run: pytest tests
|