-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
9 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,10 +5,10 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup python 3.8 | ||
- name: Setup python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.10 | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
|
@@ -26,28 +26,55 @@ jobs: | |
run: gem install license_finder | ||
- name: Allow gevent Zope license | ||
run: license_finder permitted_licenses add "Zope Public License" | ||
- name: Setup python 3.8 | ||
- name: Setup python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.10 | ||
- name: Install apt dependencies | ||
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev | ||
- name: Install dependencies | ||
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt | ||
run: pip install -r piptools_requirements.txt && pip install -r requirements.txt | ||
- name: Run license finder | ||
run: license_finder | ||
build-docs: | ||
name: Build and publish docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10 | ||
- name: Install virtualenv | ||
run: pip install virtualenv | ||
- name: Build docs | ||
run: make build_docs | ||
- name: Remove docs folder, so github will ignore it | ||
run: rm -rf docs | ||
build--docker-image: | ||
name: Build and publish docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Publish to Registry | ||
uses: elgohr/[email protected] | ||
with: | ||
name: lyft/omnibot | ||
no_push: true | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup python 3.8 | ||
- name: Setup python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.10 | ||
- name: Install apt dependencies | ||
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev | ||
- name: Install dependencies | ||
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt | ||
run: pip install -r piptools_requirements.txt && pip install -r requirements.txt | ||
- name: Run tests | ||
run: make test |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ubuntu:bionic | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY ./piptools_requirements3.txt /srv/omnibot/piptools_requirements3.txt | ||
COPY ./requirements3.txt /srv/omnibot/requirements3.txt | ||
COPY ./piptools_requirements.txt /srv/omnibot/piptools_requirements.txt | ||
COPY ./requirements.txt /srv/omnibot/requirements.txt | ||
|
||
WORKDIR /srv/omnibot | ||
|
||
|
@@ -11,7 +11,7 @@ RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-dev python3-pip openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install -r piptools_requirements3.txt && \ | ||
pip3 install -r requirements3.txt | ||
RUN pip3 install -r piptools_requirements.txt && \ | ||
pip3 install -r requirements.txt | ||
|
||
COPY . /srv/omnibot |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
decisions_file: './config/license_finder_decisions.yml' | ||
python_version: '3' | ||
pip_requirements_path: './requirements3.txt' | ||
pip_requirements_path: './requirements.txt' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-r ../requirements3.txt | ||
-r ../requirements.txt | ||
GitPython==3.1.32 | ||
Jinja2==2.11.3 | ||
MarkupSafe==1.1.1 | ||
|
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
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