Skip to content

Commit eb8a93f

Browse files
authored
remove reference to pypy in CI GHA and remove deadcode needed for python 3.9 and move all GHA to >=3.11 (PolusAI#338)
1 parent 1bf7e26 commit eb8a93f

16 files changed

+23
-83
lines changed

.github/workflows/fuzzy_compile_weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
environment-file: sophios/install/system_deps.yml
7777
activate-environment: wic
7878
channels: conda-forge
79-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
79+
python-version: "3.11.*"
8080

8181
- name: Install Sophios
8282
if: always()
@@ -97,7 +97,7 @@ jobs:
9797

9898
- name: Generate Sophios Python API Workflows (*.py -> *.wic)
9999
if: always()
100-
run: cd sophios/ && pytest -k test_compile_python_workflows
100+
run: cd sophios/ && pytest -k test_compile_python_workflows
101101

102102
- name: Generate Sophios Validation Jsonschema
103103
if: always()

.github/workflows/lint_and_test.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,7 @@ jobs:
124124
ref: ${{ inputs.image-workflows_ref }}
125125
path: image-workflows
126126

127-
# NOTE: pypy actually decreases performance for lint_and_test.yml (by a factor of ~2)
128-
# - name: Append pypy to conda environment files
129-
# if: runner.os != 'Windows'
130-
# run: cd sophios/install/ && echo " - pypy" >> system_deps.yml
131-
132-
# - name: Append pypy to conda environment files
133-
# if: runner.os == 'Windows'
134-
# run: cd sophios/install/ && echo " - pypy" >> system_deps_windows.yml
135-
127+
# Completely moving away from pypy
136128
- name: Setup miniforge (linux, macos)
137129
if: runner.os != 'Windows'
138130
uses: conda-incubator/[email protected]
@@ -142,7 +134,7 @@ jobs:
142134
environment-file: sophios/install/system_deps.yml
143135
activate-environment: wic
144136
channels: conda-forge
145-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
137+
python-version: "3.11.*"
146138

147139
- name: Setup miniforge (windows)
148140
if: runner.os == 'Windows'
@@ -153,7 +145,7 @@ jobs:
153145
environment-file: sophios/install/system_deps_windows.yml
154146
activate-environment: wic
155147
channels: conda-forge
156-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
148+
python-version: "3.11.*"
157149

158150
- name: ShellCheck Script Quality
159151
if: always()

.github/workflows/lint_and_test_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
activate-environment: wic
7878
use-mamba: true
7979
channels: conda-forge
80-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
80+
python-version: "3.11.*"
8181

8282
- name: ShellCheck Script Quality
8383
if: always()

.github/workflows/run_workflows.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ jobs:
106106
run: rm -rf "/home/$(whoami)/wic/" && rm -rf "/home/$(whoami)/.toil/"
107107
# For self-hosted runners, make sure we use new global config settings
108108

109-
# Using pypy increases performance / decreases cwltool runtime by about a minute.
110-
- name: Append pypy to conda environment files
111-
if: runner.os != 'Windows'
112-
run: cd sophios/install/ && echo " - pypy" >> system_deps.yml
109+
# Completely moving away from pypy
113110

114111
- name: Remove old mamba environment
115112
if: always()
@@ -131,7 +128,7 @@ jobs:
131128
environment-file: sophios/install/system_deps.yml
132129
activate-environment: wic_github_actions
133130
channels: conda-forge
134-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
131+
python-version: "3.11.*"
135132

136133
# - name: Docker pull
137134
# if: always()

.github/workflows/run_workflows_weekly.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,19 @@ jobs:
7474
if: always()
7575
run: rm -rf "/home/$(whoami)/miniconda3/envs/wic_github_actions/"
7676
# For self-hosted runners, make sure we install into a new mamba environment
77-
78-
# Toil is currently incompatible with pypy
79-
# - name: Append pypy to conda environment files
80-
# if: runner.os != 'Windows'
81-
# run: cd sophios/install/ && echo " - pypy" >> system_deps.yml
77+
# Completely moving away from pypy
8278

8379
- name: Setup miniforge (linux, macos)
8480
if: always()
8581
uses: conda-incubator/[email protected]
8682
with:
87-
miniforge-variant: Miniforge3 # NOT Miniforge-pypy3
88-
# Toil is (currently) incompatible with pypy. Miniforge-pypy3
89-
# installs pypy in the base environment (only). Although we are using
90-
# another environment, better to avoid the problem altogether by
91-
# not using Miniforge-pypy3
83+
miniforge-variant: Miniforge3
9284
miniforge-version: 24.7.1-2
9385
environment-file: sophios/install/system_deps.yml
9486
activate-environment: wic_github_actions
9587
use-mamba: true
9688
channels: conda-forge
97-
python-version: "3.9.*" # pypy is not yet compatible with 3.10 and 3.11
89+
python-version: "3.11.*"
9890

9991
# - name: Docker pull
10092
# if: always()

.github/workflows/test_and_publish_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python 3.9
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: 3.9
20+
python-version: 3.11
2121

2222
- name: Remove old global config
2323
if: always()

docker/dockerBuild.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
# cwl-utils library to recursively search for the dockerPull: tags within each workflow.
77

88
sudo docker build --no-cache --pull -f Dockerfile_debian -t polusai/wic_debian ..
9-
sudo docker build --no-cache --pull -f Dockerfile_debian_pypy -t polusai/wic_debian_pypy ..
109
sudo docker build --no-cache --pull -f Dockerfile_ubuntu -t polusai/wic_ubuntu ..
11-
sudo docker build --no-cache --pull -f Dockerfile_ubuntu_pypy -t polusai/wic_ubuntu_pypy ..
1210

1311
sudo docker build --no-cache --pull -f Dockerfile_fedora -t polusai/wic_fedora ..
14-
sudo docker build --no-cache --pull -f Dockerfile_fedora_pypy -t polusai/wic_fedora_pypy ..
1512
sudo docker build --no-cache --pull -f Dockerfile_redhat -t polusai/wic_redhat ..
16-
sudo docker build --no-cache --pull -f Dockerfile_redhat_pypy -t polusai/wic_redhat_pypy ..
1713
sudo docker build --no-cache --pull -f Dockerfile_amazon -t polusai/wic_amazon ..
18-
sudo docker build --no-cache --pull -f Dockerfile_amazon_pypy -t polusai/wic_amazon_pypy ..

install/pypy.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

install/pypy_docker_deps.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

install/system_deps.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ channels:
33
- defaults
44

55
dependencies:
6-
# Keep the python constraint in case we want to install pypy.
7-
- "python<3.11"
6+
- "python>=3.11"
87
# NOTE: cwltool needs nodejs for InlineJavascriptRequirement
98
- nodejs
109
- graphviz
@@ -40,5 +39,5 @@ dependencies:
4039
# Needs binary PyQt5 dependencies.
4140
- kubernetes-helm
4241
- zstandard
43-
# Needed for orjson wheels
44-
- orjson
42+
# # Needed for orjson wheels
43+
# - orjson

0 commit comments

Comments
 (0)