-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
test: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: interscript/interscript | ||
- name: Run bootstrap script | ||
run: ruby bootstrap.rb | ||
- name: Use Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
- name: Use Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Compile maps | ||
run: cd python; pip install build regex pytest twine; bash ./build.sh; pip install . | ||
- name: PyTest | ||
run: cd python; pytest | ||
- name: Build package | ||
run: cd python; python -m build | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: python/dist/ | ||
permissions: | ||
id-token: write |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: PyTest | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "*/ci-check" | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
name: PyTest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
python: [3.8, "3.10", 3.11, 3.12] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: interscript/interscript | ||
- name: Run bootstrap script | ||
run: ruby bootstrap.rb | ||
- name: Use Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
- name: Use Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Compile maps | ||
run: cd python; pip install regex pytest; bash ./build.sh; pip install . | ||
- name: PyTest | ||
run: cd python; pytest |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
rm -rf src/interscript/maps | ||
mkdir -p src/interscript/maps | ||
pushd ../ruby | ||
bundle config set --local without 'secryst jsexec' | ||
bundle install || exit 1 | ||
bundle exec rake compile[python,../python/src/interscript/maps] || exit 1 | ||
popd |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "interscript" | ||
version = "0.0.1" | ||
version = "0.0.4" | ||
authors = [ | ||
{ name="Ribose Inc.", email="[email protected]" }, | ||
] | ||
|