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: testing more python versions, and fixing dependencies #116

Merged
merged 4 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .github/dummy
Empty file.
14 changes: 11 additions & 3 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ on: [push, pull_request]
jobs:
mixed_tests:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- '3.8.x'
- '3.11.x'
- '3.12.x'
- 'pypy3.10'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.10.x
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Official python image has an alpine-based version. It's easiest to
# use it directly instead of building from source with pyenv.
FROM python:3.11-alpine
FROM python:3.12-alpine

# Install extras
RUN apk add sudo bash
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ WORKDIR /ifex
USER ubuntu
ENV PATH "/home/ubuntu/.pyenv/bin:/usr/bin:/bin"
RUN scripts/install_pyenv.sh
RUN scripts/install_python_version_in_pyenv.sh 3.11
RUN pyenv global 3.11
RUN scripts/install_python_version_in_pyenv.sh 3.12
RUN pyenv global 3.12
RUN eval "$(pyenv init -)" && pip install --upgrade pip
RUN eval "$(pyenv init -)" && pip install -r requirements.txt
RUN eval "$(pyenv init -)" && python setup.py develop
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ six==1.16.0
tomli==2.0.1
dacite==1.6.0
jsonschema>=4.20
lark==1.1.9
setuptools
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python

from distutils import extension
import glob
from distutils.core import setup
from setuptools import setup
from setuptools import find_packages

from ifex.templates import TemplateDir
Expand Down
Loading