-
Notifications
You must be signed in to change notification settings - Fork 4
114 lines (99 loc) · 2.62 KB
/
Copy pathci-python.yml
File metadata and controls
114 lines (99 loc) · 2.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Python checks
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
# lint:
# name: Lint Python Code Base with Ruff
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v6
# - uses: astral-sh/ruff-action@v3
# with:
# version: "latest"
# args: "check"
# src: "./reVeal"
# - uses: astral-sh/ruff-action@v3
# with:
# version: "latest"
# args: "format --check"
# src: "./reVeal"
locked-tests:
# needs: lint
name: Pixi-Locked Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 8
steps:
- name: Checkout Repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11
with:
pixi-version: v0.62.2
locked: true
cache: true
cache-write: false
environments: dev
- run: |
pixi reinstall -e dev --locked NLR-reVeal
tests:
# needs: lint
name: Python Tests (Pixi)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 8
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout Repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11
with:
pixi-version: v0.62.2
locked: true
cache: true
cache-write: ${{ github.ref == 'refs/heads/main' }}
environments: dev
- run: |
pixi reinstall -e dev NLR-reVeal
pixi run -e dev tests
mamba-test:
# needs: lint
name: Mamba Test
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- name: Checkout Repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: Install Environment
uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476
with:
environment-file: environment.yml
cache-environment: true
- name: Install Package
shell: bash -l {0}
run: |
python -m pip install .[test]
- name: Run Pytest
shell: bash -l {0}
run: |
python -m pytest -v --disable-warnings -m "not skip_ci"