-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
981f4ab
commit 0a7aea7
Showing
6 changed files
with
77 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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.
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
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 | ||
|
||
|
||
|
||
|
||
|
||
|