From a1219c50a570584bbda3a2211afb073310250acf Mon Sep 17 00:00:00 2001 From: Eryk Szpotanski Date: Thu, 14 Sep 2023 11:29:37 +0200 Subject: [PATCH] Test actions --- .github/workflows/test.yml | 69 ++++++-------------------------------- 1 file changed, 11 insertions(+), 58 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce394ec..b537b9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,66 +3,19 @@ on: [push] name: test jobs: - centos: - container: centos:7 + test-Python: + container: ubuntu:jammy runs-on: [self-hosted, Linux, X64] env: - TEST_STRING: "VERY_COOL_STRING" - TEST_STRING2: "VERY_COOL_STRING2" - GHA_EXTERNAL_DISK: "auxdisk" GHA_PREEMPTIBLE: "false" - GHA_SSH_TUNNEL_KEY: "${{ secrets.GHA_SSH_TUNNEL_KEY_GARBAGE }}" - GHA_SSH_TUNNEL_CONFIG: "${{ secrets.GHA_SSH_TUNNEL_CONFIG }}" - GHA_SSH_TUNNEL_CONFIG_SECRET_NAME: "nginx_server_config" - GHA_SSH_TUNNEL_KEY_SECRET_NAME: "nginx_server_key" - steps: - - uses: actions/checkout@v2 + - run: apt update -qqy && apt install -qqy lsb-release + - run: | + which lsb_release + ls -l $(which lsb_release) + echo $PATH + rm /etc/lsb-release + - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 with: - submodules: recursive - - run: pwd - - run: ls -alh - - run: hostname - - run: printenv - env: - TEST_STRING_RUN: "VERY_COOL_STRING5" - - run: df -h . - - run: df -h /mnt/aux - - run: ls -alh /mnt/aux - - name: Checkout tools repo - uses: actions/checkout@v2 - with: - repository: KittyKatt/screenFetch - path: screenfetch - - run: cp screenfetch/screenfetch-dev /usr/bin/screenfetch - - run: chmod +x screenfetch - - run: yum -y install wget - - run: wget http://localhost:8080 && cat index.html - - uses: actions/upload-artifact@v3 - with: - name: plots - path: '**/plot_*.svg' - - simple-job: - container: debian:bullseye - runs-on: [self-hosted, Linux, X64] - env: - GHA_PREEMPTIBLE: "false" - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - - run: ls -alh - - run: hostname - - run: printenv - - run: df -h . - - ipv6-test: - container: debian:bullseye - runs-on: [self-hosted, Linux, X64] - env: - GHA_PREEMPTIBLE: "false" - steps: - - run: apt -qqy update && apt -qqy install iputils-ping iproute2 - - run: ip a - - run: ping -c 3 ipv6.google.com + python-version: '3.9.18' + - run: python --version \ No newline at end of file