Skip to content

Commit

Permalink
Merge pull request #351 from ncihtan/340-move-the-ci-to-use-the-refac…
Browse files Browse the repository at this point in the history
…tored-schematic-version

Refactor actions to use latest schematic (post-refactor)
  • Loading branch information
adamjtaylor authored Feb 29, 2024
2 parents d5f817a + ffb4f09 commit dd3dc0e
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/ci-lint-validate-convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
${{ github.sha }}
cancel-in-progress: true

env:
SCHEMATIC_VERSION: '24.2.1'
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

jobs:
lint:
name: Lint CSV
Expand All @@ -34,24 +38,17 @@ jobs:
name: Validate CSV
if: always()
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install Schematic
shell: bash
run: |
pip3 install poetry
git clone --single-branch --branch main https://github.com/Sage-Bionetworks/schematic.git
cd schematic
poetry build
pip3 install dist/schematicpy-*-py3-none-any.whl
pip install --force-reinstall typing-extensions==4.5.0
pip install schematicpy==$SCHEMATIC_VERSION
- name: Convert CSV schema
shell: bash
Expand All @@ -69,25 +66,18 @@ jobs:
needs:
- lint
- validate

runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'

- name: Install Schematic
shell: bash
run: |
pip3 install poetry
git clone --single-branch --branch main https://github.com/Sage-Bionetworks/schematic.git
cd schematic
poetry build
pip3 install dist/schematicpy-*-py3-none-any.whl
pip install schematicpy==$SCHEMATIC_VERSION
- name: Convert .csv to .jsonld
shell: bash
Expand Down

0 comments on commit dd3dc0e

Please sign in to comment.