Skip to content

Commit e92e27f

Browse files
authored
CI: add job to smoke-test building and installing (#128)
* CI: add job to smoke-test building and installing * CI: fix GHA event spelling * CI: run an all branches for debugging reasons * CI: run on all but pushes to master * CI: try to drive pixi workflow differently * CI: tell pixi where the manifest is
1 parent c982af9 commit e92e27f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/smoke_test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: smoke test
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches-ignore:
7+
- master
8+
# branches: ['develop']
9+
pull_request:
10+
branches: ['develop']
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
16+
# Default to bash
17+
defaults:
18+
run:
19+
shell: bash
20+
21+
22+
jobs:
23+
build:
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os:
28+
- name: 'ubuntu-22.04'
29+
- name: 'macos-latest'
30+
- name: 'windows-latest'
31+
cmd_extra: '-win'
32+
env: ['py310', 'py311', 'py312', 'py313']
33+
runs-on: ${{ matrix.os.name }}
34+
steps:
35+
# checkout repo
36+
- uses: actions/checkout@v2
37+
38+
# set up pixi
39+
- uses: prefix-dev/[email protected]
40+
with:
41+
environments: ${{ matrix.env }}
42+
pixi-version: v0.39.5
43+
manifest-path: pixi/pixi.toml
44+
45+
# run install to see if it works
46+
- name: Build
47+
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }}

0 commit comments

Comments
 (0)