test centos x2 #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |