Skip to content

test centos x2

test centos x2 #199

Workflow file for this run

name: BLOOM CentOS
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
branches:
- '**'
jobs:
centos9-job:
runs-on: ubuntu-latest # We use the default GitHub runner to start a Docker container
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Build and run CentOS 9 compatible container
run: |
docker run --name rocky9-container -d rockylinux:9 sleep infinity
docker exec rocky9-container yum install -y python3 python3-pip
docker exec rocky9-container python3 -m pip install --upgrade pip
docker cp . rocky9-container:/workspace
docker exec rocky9-container /bin/bash -c "cd /workspace && pip3 install pytest psycopg2-binary sqlalchemy zebra_day==0.3.0.4 pytz fedex_tracking_day==0.2.6 && source bloom_lims/env/install_postgres.sh skip && pytest"
- name: Clean up Docker container
run: docker rm -f roc