-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (103 loc) · 2.68 KB
/
pixi.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
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
name: Main workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
environments: build
- name: Build
run: pixi run build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
qa:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
environments: qa
- name: Install QA
run: pixi run qa-install
- name: Run QA
run: pixi run qa-ci
simpletests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
environments: self
- name: Run Simple Tests
shell: pixi run -e self bash -e {0}
run: |
gridtk --help
gridtk submit --help
gridtk resubmit --help
gridtk stop --help
gridtk list --help
gridtk report --help
gridtk delete --help
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
environments: test
- name: Run Tests
run: pixi run test-ci
doc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.25.0
environments: doc
- name: Clean previous docs
run: pixi run doc-clean
- name: Build docs
run: pixi run doc
- name: Run doctests
run: pixi run doctest
pypi-publish:
runs-on: ubuntu-22.04
needs:
- build
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
# include the PyPI project URL in the deployment status:
url: https://pypi.org/p/gridtk
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1