Skip to content

Tests

Tests #6

Workflow file for this run

name: Tests
on:
workflow_dispatch:
jobs:
test1:
runs-on: ubuntu-latest
container: ubuntu:22.04
strategy:
matrix:
python: [3.12.6]
steps:
- uses: actions/checkout@v4
- name: List environment variables
run: printenv
- name: Install Docker
run: |
apt-get update
apt-get install -y docker.io
- name: Install lsb-release
run: |
apt-get update
apt-get install -y lsb-release
- name: fix pip issue
run: mkdir -p /github/home/.cache/pip
- name: Show Container ID and Environment Variable
run: |
echo "Container ID used: ${{ env.container_id }}"
/usr/bin/docker exec ${{ env.container_id }} sh -c "echo 'PIP_ROOT_USER_ACTION: ' \$PIP_ROOT_USER_ACTION"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
test2:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.12.6]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'