Skip to content

Commit

Permalink
Merge pull request #771 from airbnb/csharplus_try_new_builds
Browse files Browse the repository at this point in the history
Add a new launch setting for local development and upgrade the Ubuntu version
  • Loading branch information
JJJ000 authored Apr 17, 2023
2 parents 7c9c2bb + b13cea1 commit 71fd3fd
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 63 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:

jobs:
Build:
runs-on: '${{ matrix.os }}'
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: ['ubuntu-18.04', 'macos-latest']
python-version: ['3.7', '3.8', '3.9']
os: ["ubuntu-22.04", "macos-latest"]
python-version: ["3.7", "3.8", "3.9"]
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand All @@ -24,7 +24,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: '${{ matrix.python-version }}'
python-version: "${{ matrix.python-version }}"

- name: CI Tests
shell: bash -l {0}
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
release:
release:
types: [created]
workflow_dispatch:

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@master

- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Checkout source
uses: actions/checkout@master

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
58 changes: 29 additions & 29 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ on:
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@master

- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Checkout source
uses: actions/checkout@master

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
"7001"
]
},
{
"name": "Run Server Locally with a Git repo",
"type": "python",
"request": "launch",
"program": "scripts/knowledge_repo",
"console": "integratedTerminal",
"args": [
"--repo",
"~/test_repo",
"runserver",
"--port",
"7001"
]
},
{
"name": "Run Server Locally with config",
"type": "python",
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:22.04

LABEL description="knowledge-repo service"

Expand Down

0 comments on commit 71fd3fd

Please sign in to comment.