Skip to content

Merge pull request #169 from tjjarvinen/use_views #117

Merge pull request #169 from tjjarvinen/use_views

Merge pull request #169 from tjjarvinen/use_views #117

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Add MolSim registry
run: julia -e 'using Pkg; pkg"registry add General"; pkg"registry add https://github.com/JuliaMolSim/MolSim.git"'
- name: Install Python dependencies
run: |
julia --project=. -e 'using Pkg; Pkg.add("PyCall")'
PYTHON=$(which $(julia --project=. -e 'using PyCall; print(PyCall.python)'))
echo "Julia is using PYTHON=$PYTHON"
$(dirname $PYTHON)/pip install "numpy<1.24" ase
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- uses: julia-actions/julia-runtest@v1
env:
DATADEPS_ALWAYS_ACCEPT: true