Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 7 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,19 @@ jobs:
coverage run --source=reframe ./test_reframe.py
coverage report -m

unittest-py36:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.6']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and docs
run: |
./bootstrap.sh +docs
- name: Generic Unittests
run: |
./test_reframe.py

unittest-py37:
runs-on: ubuntu-22.04
unittest-py-eol:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
python-version: ['3.6', '3.7']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and docs
- name: Build Image for Python ${{ matrix.python-version }}
run: |
./bootstrap.sh +docs
- name: Generic Unittests
docker build --build-arg PYTHON_VERSION=${{ matrix.python-version }} -f ci-scripts/dockerfiles/reframe-python.dockerfile -t reframe-python${{ matrix.python-version }}:latest .
- name: Run Unittests
run: |
./test_reframe.py
docker run reframe-python${{ matrix.python-version }}:latest

unittest-macos:
runs-on: macos-latest
Expand Down
22 changes: 22 additions & 0 deletions ci-scripts/dockerfiles/reframe-python.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2016-2025 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause

ARG PYTHON_VERSION=3.6

FROM docker.io/python:${PYTHON_VERSION}

# ReFrame user
RUN useradd -ms /bin/bash rfmuser

USER rfmuser

# Install ReFrame from the current directory
COPY --chown=rfmuser . /home/rfmuser/reframe/

WORKDIR /home/rfmuser/reframe

RUN ./bootstrap.sh +docs

CMD ["/bin/bash", "-c", "./test_reframe.py -v"]
Loading