add test script #209
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
julia-version: ['1.8', '1.10'] | |
julia-arch: [x64] | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- name: Install matplotlib | |
run: if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get update; sudo apt-get install -y python3-matplotlib --fix-missing; fi | |
shell: bash | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
- name: Override Conda Python | |
run: if [ "$RUNNER_OS" = "Linux" ]; then julia -e 'import Pkg; Pkg.add("PyCall"); ENV["PYTHON"]="/usr/bin/python3"; Pkg.build("PyCall")'; fi | |
shell: bash | |
# - uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 |