Skip to content

respect current juliaup depot path #59

respect current juliaup depot path

respect current juliaup depot path #59

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- '*'
jobs:
tests:
name: Test (${{ matrix.os }}, python ${{ matrix.pyversion }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
pyversion: ["3.x", "3.8"]
env:
JULIA_DEPOT_PATH: ${{ github.workspace }}/julia_depot
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-cov
pip install -e .
- name: Lint with ruff
run: |
ruff format --check
ruff check
- name: Install juliaup (Linux and macOS only)
if: runner.os != 'Windows'
shell: bash
run: |
curl -fsSL https://install.julialang.org | sh -s -- -y
- name: Test with pytest
run: |
pytest -s --cov=src test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}