Skip to content

Commit f383b9c

Browse files
author
Thijs Vogels
committed
Skala initial public release
0 parents  commit f383b9c

894 files changed

Lines changed: 359577 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.10", "3.11", "3.12", "3.13"]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup micromamba
24+
uses: mamba-org/setup-micromamba@v1
25+
with:
26+
environment-file: environment.yml
27+
environment-name: skala
28+
cache-environment: true
29+
cache-downloads: true
30+
create-args: >-
31+
python=${{ matrix.python-version }}
32+
33+
- name: Install package in development mode
34+
run: |
35+
pip install -e . --no-deps
36+
shell: micromamba-shell {0}
37+
38+
- name: Check environment consistency
39+
run: |
40+
pip check
41+
shell: micromamba-shell {0}
42+
43+
- name: Run pre-commit hooks
44+
run: |
45+
pre-commit install
46+
pre-commit run --all-files
47+
shell: micromamba-shell {0}
48+
49+
- name: Run tests with coverage
50+
run: >-
51+
pytest
52+
-v
53+
--doctest-modules
54+
--cov=skala --cov-report=xml --cov-report=term-missing --cov-report=html
55+
--durations=50 --durations-min=1.0
56+
--pyargs skala
57+
tests/
58+
shell: micromamba-shell {0}

0 commit comments

Comments
 (0)