Skip to content

Commit

Permalink
[test]
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev778 committed Mar 7, 2024
1 parent 83576a0 commit 49bcb75
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
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; ./build.sh; pip install .
- name: PyTest
run: pytest
3 changes: 2 additions & 1 deletion build.sh
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'
bundle install || exit 1
bundle exec rake compile[python,../python/src/interscript/maps] || exit 1
popd

0 comments on commit 49bcb75

Please sign in to comment.