Skip to content

Commit 78491ac

Browse files
committed
CI: remove residual conda and pip cruft
1 parent 3607e57 commit 78491ac

File tree

1 file changed

+25
-55
lines changed

1 file changed

+25
-55
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -11,83 +11,53 @@ on:
1111
- main
1212

1313
jobs:
14-
build-pip:
15-
name: pip - ${{matrix.os}} - ${{matrix.python-version}}
14+
build:
15+
name: ${{matrix.os}} - ${{matrix.python-version}}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
2020
python-version: ["3.9", "3.13"]
2121

22-
2322
steps:
24-
- uses: actions/checkout@v2
25-
26-
- uses: actions/setup-python@v3
27-
with:
28-
python-version: ${{matrix.python-version}}
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{matrix.python-version}}
2927

30-
- name: Install PyImageJ
31-
run: |
32-
python -m pip install --upgrade pip
33-
python -m pip install -e '.[dev]'
28+
- name: Install uv
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install uv
3432
35-
- name: Test PyImageJ
36-
shell: bash
37-
run: |
38-
bin/test.sh
33+
- name: Test PyImageJ
34+
shell: bash
35+
run: |
36+
bin/test.sh
3937
4038
ensure-clean-code:
4139
runs-on: ubuntu-latest
4240
steps:
4341
- uses: actions/checkout@v2
4442
- uses: actions/setup-python@v3
4543

44+
- name: Install uv
45+
run: |
46+
python -m pip install --upgrade pip
47+
python -m pip install uv
48+
4649
- name: Lint code
4750
run: |
48-
python -m pip install ruff
49-
ruff check
50-
ruff format --check
51+
uv run ruff check
52+
uv run ruff format --check
5153
5254
- name: Validate pyproject.toml
5355
run: |
54-
python -m pip install validate-pyproject[all]
55-
python -m validate_pyproject pyproject.toml
56+
uv run validate-pyproject pyproject.toml
5657
57-
conda-dev-test:
58-
name: Conda Setup & Code Coverage
59-
runs-on: ubuntu-latest
60-
defaults:
61-
# Steps that rely on the activated environment must be run with this shell setup.
62-
# See https://github.com/marketplace/actions/setup-miniconda#important
63-
run:
64-
shell: bash -l {0}
65-
steps:
66-
- uses: actions/checkout@v2
67-
- name: Cache conda
68-
uses: actions/cache@v4
69-
env:
70-
# Increase this value to reset cache if dev-environment.yml has not changed
71-
CACHE_NUMBER: 0
72-
with:
73-
path: ~/conda_pkgs_dir
74-
key:
75-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('dev-environment.yml') }}
76-
- uses: conda-incubator/setup-miniconda@v3
77-
with:
78-
# Create env with dev packages
79-
auto-update-conda: true
80-
python-version: 3.9
81-
miniforge-version: latest
82-
environment-file: dev-environment.yml
83-
# Activate pyimagej-dev environment
84-
activate-environment: pyimagej-dev
85-
auto-activate-base: false
86-
# Use mamba for faster setup
87-
use-mamba: true
88-
- name: Test pyimagej
58+
- name: Analyze code coverage
8959
run: |
9060
bin/test.sh tests --cov-report=xml --cov=.
91-
# We could do this in its own action, but we'd have to setup the environment again.
92-
- name: Upload Coverage to Codecov
61+
62+
- name: Upload coverage to Codecov
9363
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)