Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
alesnovak-s1 committed Sep 2, 2024
1 parent 981f4ab commit 0a7aea7
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 91 deletions.
23 changes: 0 additions & 23 deletions .coveragerc

This file was deleted.

28 changes: 0 additions & 28 deletions .coveragerc_ci

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Agent Build Refactored
name: Build Linux Packages

on:
push:
Expand Down Expand Up @@ -66,50 +66,12 @@ jobs:
CT_SCALYR_TOKEN_PROD_US_CLOUDTECH_TESTING_WRITE: ${{ secrets.CT_SCALYR_TOKEN_PROD_US_CLOUDTECH_TESTING_WRITE }}
CT_SCALYR_TOKEN_PROD_US_CLOUDTECH_TESTING_READ: ${{ secrets.CT_SCALYR_TOKEN_PROD_US_CLOUDTECH_TESTING_READ }}

build_tarball:
runs-on: ubuntu-20.04

steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- name: Install python
uses: actions/setup-python@v4
with:
python-version: "3.8.13"

- name: Build tarball
run: |
mkdir -p build/tarball/noarch
pushd build/tarball/noarch
python3 ../../../build_package.py tarball
popd
- name: Save tarball as artifact
uses: actions/upload-artifact@v3
with:
name: tarball-noarch
path: build
retention-days: 1

- name: Notify Slack on Failure
if: ${{ failure() && github.ref_name == 'master' }}
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#eng-dataset-cloud-tech'


# Aggregate all agent build artifacts that we build by this workflow and put in a single artifact,
# so it's just need to download only one artifact, for example during a release process.
prepare-artifacts:
runs-on: ubuntu-20.04
needs:
- build_linux_packages
- build_tarball

steps:
- name: Checkout repository
Expand Down Expand Up @@ -139,7 +101,6 @@ jobs:
needs:
- pre_job
- build_linux_packages
- build_tarball
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Tarball

on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
branches:
- master
workflow_dispatch:

schedule:
- cron: '0 4 * * *'

permissions:
contents: read

jobs:
build_tarball:
runs-on: ubuntu-20.04

steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- name: Install python
uses: actions/setup-python@v4
with:
python-version: "3.8.13"

- name: Build tarball
run: |
mkdir -p build/tarball/noarch
pushd build/tarball/noarch
python3 ../../../build_package.py tarball
popd
- name: Save tarball as artifact
uses: actions/upload-artifact@v3
with:
name: tarball-noarch
path: build
retention-days: 1

- name: Notify Slack on Failure
if: ${{ failure() && github.ref_name == 'master' }}
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#eng-dataset-cloud-tech'
File renamed without changes.
21 changes: 21 additions & 0 deletions Dockerfile_test_py310
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:20.04

RUN apt update
RUN ln -fs /usr/share/zoneinfo/Europe/Prague /etc/localtime
RUN apt install software-properties-common build-essential -y
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install python3.10 python3.10-venv python3.10-dev curl -y

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

RUN python3.10 -m pip install "tox==3.20.1" "tox-gh-actions==2.9.1"

ADD dev-requirements-new.txt /dev-requirements-new.txt
RUN python3.10 -m pip install -r /dev-requirements-new.txt






0 comments on commit 0a7aea7

Please sign in to comment.