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: Test | ||
on: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]" | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
concurrency: | ||
group: test-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
environment: ["python-39", "python-310", "python-311", "python-312", "python-313"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: { submodules: recursive } | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.39.5 | ||
- name: doctest | ||
shell: pixi run bash -e {0} | ||
run: pixi run -e ${{ matrix.environment }} doctest | ||
- name: test building packages | ||
<<<<<<< HEAD | ||
shell: pixi run bash -e {0} | ||
run: pixi run -e dev convert | ||
- name: validate packages | ||
shell: pixi run bash -e {0} | ||
run: pixi run -e dev validate | ||
======= | ||
shell: bash -l {0} | ||
run: | | ||
cd data | ||
make | ||
- name: Validate Data Package Metdata | ||
shell: bash -l {0} | ||
run: | | ||
check-jsonschema --schemafile https://raw.githubusercontent.com/echemdb/metadata-schema/main/schemas/echemdb_package.json --no-cache $(find ./data/generated/ -type f -name "*.json") | ||
>>>>>>> package_validation |