Add image self-test; postpone GSASIIctrlGUI import until needed in CI… #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: smoke test | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches-ignore: | |
- master | |
# branches: ['develop'] | |
pull_request: | |
branches: ['develop'] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Default to bash | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- name: 'ubuntu-22.04' | |
- name: 'macos-latest' | |
# windows build is broken; don't test for now | |
# - name: 'windows-latest' | |
# cmd_extra: '-win' | |
env: ['py310', 'py311', 'py312', 'py313'] | |
runs-on: ${{ matrix.os.name }} | |
steps: | |
# checkout repo | |
- uses: actions/checkout@v2 | |
# set up pixi | |
- uses: prefix-dev/[email protected] | |
with: | |
environments: ${{ matrix.env }} | |
pixi-version: v0.39.5 | |
manifest-path: pixi/pixi.toml | |
# run install to see if it works | |
- name: Build | |
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }} | |
- name: test | |
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} test |