MilesCranmer commited on
Commit
56f0425
·
unverified ·
1 Parent(s): 1ab76b8

Remove incremental install altogether

Browse files
.github/workflows/CI.yml CHANGED
@@ -87,15 +87,6 @@ jobs:
87
  COVERALLS_PARALLEL: true
88
  run: coveralls --service=github
89
 
90
- incremental_install:
91
- runs-on: ubuntu-latest
92
- steps:
93
- - uses: actions/checkout@v4
94
- - name: "Build incremental install"
95
- run: docker build -t pysr -f pysr/test/incremental_install_simulator.dockerfile .
96
- - name: "Test incremental install"
97
- run: docker run --rm pysr /bin/bash -l -c 'python3 -m pysr test main && python3 -m pysr test env'
98
-
99
  conda_test:
100
  runs-on: ${{ matrix.os }}
101
  defaults:
 
87
  COVERALLS_PARALLEL: true
88
  run: coveralls --service=github
89
 
 
 
 
 
 
 
 
 
 
90
  conda_test:
91
  runs-on: ${{ matrix.os }}
92
  defaults:
pysr/test/incremental_install_simulator.dockerfile DELETED
@@ -1,52 +0,0 @@
1
- # This dockerfile simulates a user installation that first
2
- # builds PySR for Python 3.9, and then upgrades to Python 3.10.
3
- # Normally this would cause an error when installing PyCall, so we want to
4
- # ensure that PySR can automatically patch things.
5
- FROM debian:bullseye-slim
6
-
7
- ENV DEBIAN_FRONTEND=noninteractive
8
-
9
- # Install juliaup and pyenv:
10
- RUN apt-get update && apt-get install -y curl git build-essential \
11
- libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev \
12
- libncurses5-dev libncursesw5-dev xz-utils libffi-dev liblzma-dev && \
13
- apt-get clean && \
14
- rm -rf /var/lib/apt/lists/*
15
-
16
- # Install juliaup:
17
- RUN curl -fsSL https://install.julialang.org | sh -s -- -y
18
-
19
- # Install pyenv:
20
- RUN curl -fsSL curl https://pyenv.run | sh && \
21
- echo 'export PATH="/root/.pyenv/bin:$PATH"' >> ~/.bashrc && \
22
- echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc && \
23
- echo 'eval "$(pyenv init -)"' >> ~/.bashrc && \
24
- echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
25
-
26
- # Default to using bash -l:
27
- SHELL ["/bin/bash", "-l", "-c"]
28
-
29
- RUN juliaup add 1.8 && juliaup default 1.8
30
- RUN pyenv install 3.9.2 && pyenv global 3.9.2
31
- RUN python3 -m pip install --upgrade pip
32
-
33
- # Get PySR source:
34
- WORKDIR /pysr
35
- ADD ./requirements.txt /pysr/requirements.txt
36
- RUN python3 -m pip install --no-cache-dir -r /pysr/requirements.txt
37
-
38
- ADD ./pyproject.toml /pysr/pyproject.toml
39
- ADD ./setup.py /pysr/setup.py
40
- ADD ./pysr/ /pysr/pysr/
41
-
42
- # First install of PySR:
43
- RUN python3 -m pip install --no-cache-dir .
44
- RUN python3 -c 'import pysr'
45
-
46
- # Change Python version:
47
- RUN pyenv install 3.10 && pyenv global 3.10 && pyenv uninstall -f 3.9.2
48
- RUN python3 -m pip install --upgrade pip
49
-
50
- # Second install of PySR:
51
- RUN python3 -m pip install .
52
- RUN python3 -c 'import pysr' && python3 -c 'from pysr.sr import jl; jl.seval("@assert VERSION < v\"1.9\"")'