Skip to content

Commit

Permalink
GA
Browse files Browse the repository at this point in the history
  • Loading branch information
FI-Mihej committed Apr 1, 2024
1 parent 23afc80 commit 6ad9790
Showing 1 changed file with 67 additions and 82 deletions.
149 changes: 67 additions & 82 deletions .github/workflows/test_app_dir_path_finder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,46 +121,76 @@ jobs:
# # python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
# # python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py

windows_2019_x64__cpython:
name: windows_2019_x64__cpython. Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# windows-2019 is based on Windows Server 2019
# windows-2022 is based on Windows Server 2022, consider using it for more recent support
os: [windows-2019]
python-version: ['3.8', '3.9', '3.10']
# windows_2019_x64__cpython:
# name: windows_2019_x64__cpython. Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # windows-2019 is based on Windows Server 2019
# # windows-2022 is based on Windows Server 2022, consider using it for more recent support
# os: [windows-2019]
# python-version: ['3.8', '3.9', '3.10']

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}

- name: Install basic Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade wheel
# - name: Install basic Python dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install --upgrade setuptools
# python -m pip install --upgrade wheel

- name: Run tests
run: |
python -m pip install --upgrade pywin32
python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
shell: cmd
# - name: Run tests
# run: |
# python -m pip install --upgrade pywin32
# python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
# python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
# shell: cmd

# test_wheels__windows_2019_x64__pypy:
# name: Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
# # test_wheels__windows_2019_x64__pypy:
# # name: Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
# # runs-on: ${{ matrix.os }}
# # strategy:
# # matrix:
# # # windows-2019 is based on Windows Server 2019
# # # windows-2022 is based on Windows Server 2022, consider using it for more recent support
# # os: [windows-2019]
# # python-version: ['pypy-3.9', 'pypy-3.10']

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

# # - name: Set up Python ${{ matrix.python-version }}
# # uses: actions/setup-python@v2
# # with:
# # python-version: ${{ matrix.python-version }}

# # - name: Install basic Python dependencies
# # run: |
# # python -m pip install --upgrade pip
# # python -m pip install --upgrade setuptools
# # python -m pip install --upgrade wheel

# # - name: Run tests
# # run: |
# # python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
# # python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
# # shell: cmd

# windows_2022_x64__cpython:
# name: windows_2022_x64__cpython. Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # windows-2019 is based on Windows Server 2019
# # windows-2022 is based on Windows Server 2022, consider using it for more recent support
# os: [windows-2019]
# python-version: ['pypy-3.9', 'pypy-3.10']
# os: [windows-2022]
# python-version: ['3.11', '3.12']

# steps:
# - uses: actions/checkout@v4
Expand All @@ -178,19 +208,20 @@ jobs:

# - name: Run tests
# run: |
# python -m pip install --upgrade pywin32
# python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
# python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
# shell: cmd

windows_2022_x64__cpython:
name: windows_2022_x64__cpython. Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
ubuntu_latest_x64__cpython:
name: ubuntu_latest_x64__cpython. Test App Dir Path Finder on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# windows-2019 is based on Windows Server 2019
# windows-2022 is based on Windows Server 2022, consider using it for more recent support
os: [windows-2022]
python-version: ['3.11', '3.12']
# ubuntu-latest currently uses Ubuntu 22.04
# You can specify older versions like ubuntu-20.04 if needed
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -208,54 +239,8 @@ jobs:
- name: Run tests
run: |
python -m pip install --upgrade pywin32
python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
shell: cmd

manylinux2014_x86_64__cpython:
name: manylinux2014_x86_64__cpython. Test on Docker ${{ matrix.image }} for CPython ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: "quay.io/pypa/manylinux2014_x86_64"
package-manager: "yum"
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

# Create Docker container with a command that keeps it running
- name: Create and start Docker container
id: create-container
run: |
CONTAINER_ID=$(docker create -it -w /github/workspace ${{ matrix.image }} /bin/bash -c "tail -f /dev/null")
docker start $CONTAINER_ID
echo "::set-output name=id::$CONTAINER_ID"
# Copy workspace to the running container
- name: Copy workspace to container
run: docker cp . ${{ steps.create-container.outputs.id }}:/github/workspace

# Proceed with setting up Python and other steps within the container
- name: Set up Python in the Docker container
run: |
docker exec ${{ steps.create-container.outputs.id }} yum install -y python3.8 python3.8-pip
docker exec ${{ steps.create-container.outputs.id }} python3.8 -m pip install --upgrade pip setuptools wheel
# Continue with your setup and test execution steps
- name: Install basic Python dependencies in the Docker container
run: |
docker exec ${{ steps.create-container.outputs.id }} python -m pip install --upgrade pip
docker exec ${{ steps.create-container.outputs.id }} python -m pip install --upgrade setuptools
docker exec ${{ steps.create-container.outputs.id }} python -m pip install --upgrade wheel
- name: Run tests in the Docker container
run: |
docker exec ${{ steps.create-container.outputs.id }} python -m pip install --upgrade cengal_light[cengal__file_system__app_fs_structure__app_dir_path]
docker exec ${{ steps.create-container.outputs.id }} python ./cengal/file_system/app_fs_structure/app_dir_path/versions/v_0/development/print_app_dirs.py
# test_wheels__linux_manylinux2014_x86_64__pypy:
# name: Test on Docker ${{ matrix.image }} for CPython ${{ matrix.python-version }}
Expand Down

0 comments on commit 6ad9790

Please sign in to comment.