From fc522c3648947084f73652c864c5ec30025d69b2 Mon Sep 17 00:00:00 2001 From: Moaz Reyad Date: Wed, 1 Feb 2023 18:28:41 +0000 Subject: [PATCH] feat: Add GitHub Actions for Ubuntu 16.04 --- .github/workflows/ubuntu.yaml | 28 ++++++++++++++++++++++++++-- bitbucket-pipelines.yml | 30 ------------------------------ 2 files changed, 26 insertions(+), 32 deletions(-) delete mode 100644 bitbucket-pipelines.yml diff --git a/.github/workflows/ubuntu.yaml b/.github/workflows/ubuntu.yaml index 7ef1946..8f2273b 100644 --- a/.github/workflows/ubuntu.yaml +++ b/.github/workflows/ubuntu.yaml @@ -6,8 +6,8 @@ on: jobs: - sciunit-test-with-tox: - runs-on: ubuntu-20.04 + sciunit-test-ubuntu-20-04-with-tox: + runs-on: ubuntu-latest container: geotrust/build-essential:ubuntu20.04 steps: - uses: actions/checkout@v3 @@ -19,3 +19,27 @@ jobs: run: pip3 install tox - name: test-with-tox run: tox + + sciunit-test-ubuntu-16-04-with-tox: + runs-on: ubuntu-latest + container: geotrust/build-essential:ubuntu16.04 + steps: + - name: install-https + run: apt-get update && apt install apt-transport-https + - name: update-git + run: echo "deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu xenial main" >> /etc/apt/sources.list + - name: install-key + run: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24 + - name: install + run: apt-get update && apt-get install git -y + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: git-config + run: git config --global --add safe.directory /__w/sciunit/sciunit + - name: update-pip + run: pip3 install --upgrade pip + - name: install-tox + run: pip3 install tox + - name: test-with-tox + run: tox -e py37 diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml deleted file mode 100644 index 77ab93c..0000000 --- a/bitbucket-pipelines.yml +++ /dev/null @@ -1,30 +0,0 @@ -pipelines: - default: - - step: - image: geotrust/build-essential:ubuntu16.04 - caches: - - pip - script: - - pip3 install tox - - tox - - step: - image: geotrust/build-essential:ubuntu18.04 - caches: - - pip - script: - - pip3 install tox - - tox - - step: - image: geotrust/build-essential:ubuntu20.04 - caches: - - pip - script: - - pip3 install tox - - tox - - step: - image: geotrust/devtoolset:centos6.devtoolset-4 - caches: - - pip - script: - - pip install -U tox setuptools - - tox