-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (34 loc) · 1008 Bytes
/
unittests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test Python-formio-data
on:
push:
branches:
- '**'
jobs:
test-without-json-logic:
name: Basic unit tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Nix with direnv support
uses: aldoborrero/use-nix-action@v2
with:
nix_path: nixpkgs=channel:nixos-23.05
- name: Install basic dependencies via poetry
run: poetry install
- name: Run the tests
run: poetry run python -m unittest
test-with-json-logic:
name: Unit tests with json_logic
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Nix with direnv support
uses: aldoborrero/use-nix-action@v2
with:
nix_path: nixpkgs=channel:nixos-23.05
- name: Install dependencies via poetry, including json_logic
run: poetry install -E json_logic
- name: Run the tests
run: poetry run python -m unittest