Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use micromamba and uv and also install ROOT #69

Merged
merged 20 commits into from
Mar 28, 2024
Merged
27 changes: 16 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,23 @@ jobs:
name: JIT compiled tests for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.0.0
name: Set up Python ${{ matrix.python-version }}

- uses: mamba-org/setup-micromamba@v1
name: Set up Micromamba environment
ikrommyd marked this conversation as resolved.
Show resolved Hide resolved
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
environment-name: test-env
# - name: Install ROOT
# run: |
# micromamba install -c conda-forge root -y
- name: Install Python and dependencies
run: |
micromamba install python=${{ matrix.python-version }} pip -c conda-forge -y
python -m pip install --upgrade pip
pip install .[dev]
- name: Test with pytest
run: |
coverage run --source=. --omit=".tox/*" --branch -m pytest .
coverage report


tests_eager:
runs-on: ubuntu-latest
timeout-minutes: 150
Expand All @@ -56,13 +58,16 @@ jobs:
name: Eager mode tests for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.0.0
name: Set up Python ${{ matrix.python-version }}

- uses: mamba-org/setup-micromamba@v1
name: Set up Micromamba environment
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
environment-name: test-env
# - name: Install ROOT
# run: |
# micromamba install -c conda-forge root -y
- name: Install Python and dependencies
run: |
micromamba install python=${{ matrix.python-version }} pip -c conda-forge -y
python -m pip install --upgrade pip
pip install .[dev]
- name: Test with pytest
Expand Down
Loading