-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.52 KB
/
python-app.yml
File metadata and controls
61 lines (51 loc) · 1.52 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: prepmd CI
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 8 * * 1'
workflow_dispatch:
jobs:
tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
python-version: ["3.13"]
env:
KEY_MODELLER: MODELIRANJE
steps:
- name: Checkout repo
uses: actions/checkout@v5.0.0
- name: Cache conda packages
uses: actions/cache@v4
with:
path: ~/.conda/pkgs
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yaml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Set up Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
use-mamba: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yaml
activate-environment: prep
auto-update-conda: true
auto-activate-base: false
- name: Verify environment
shell: bash -l {0}
run: |
conda info
conda list
- name: install with pip
shell: bash -l {0}
run: pip install -e .
- name: Run test suite
shell: bash -l {0}
run: prep-license MODELIRANJE && pytest -v