Skip to content

Merge pull request #35 from dingraha/no_di_registry #61

Merge pull request #35 from dingraha/no_di_registry

Merge pull request #35 from dingraha/no_di_registry #61

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
julia:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version:
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- name: Add General Registry
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General"))
env:
JULIA_PKG_USE_CLI_GIT: 'true'
- name: OpenMDAOCore.jl Tests
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.activate("./julia/OpenMDAOCore.jl")
Pkg.update()
Pkg.test()
env:
JULIA_PKG_USE_CLI_GIT: 'true'
- name: OpenMDAO.jl Tests
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.activate("./julia/OpenMDAO.jl")
Pkg.develop(path="./julia/OpenMDAOCore.jl")
Pkg.instantiate()
using CondaPkg
CondaPkg.add_pip("omjlcomps"; version="@./../../python")
Pkg.update()
Pkg.test()
env:
JULIA_PKG_USE_CLI_GIT: 'true'
python:
name: Python ${{ matrix.python-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
julia-version:
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
os:
- ubuntu-latest
arch:
- x64
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Add General Registry
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General"))
env:
JULIA_PKG_USE_CLI_GIT: 'true'
- name: omjlcomps install
run: |
echo "PWD = $PWD"
python -m pip install --upgrade pip
pip install -e ./python
python -c "import juliapkg; juliapkg.add('OpenMDAOCore', '24d19c10-6eee-420f-95df-4537264b2753', dev=True, path='$PWD/julia/OpenMDAOCore.jl'); juliapkg.resolve()"
env:
JULIA_PKG_USE_CLI_GIT: 'true'
- name: omjlcomps tests
run: |
python ./python/omjlcomps/test/test_julia_explicit_comp.py
python ./python/omjlcomps/test/test_julia_implicit_comp.py
env:
JULIA_PKG_USE_CLI_GIT: 'true'