Skip to content

Commit

Permalink
Merge branch 'main' of github.com:latchbio/latch into r614/registry-f…
Browse files Browse the repository at this point in the history
…ixes
  • Loading branch information
ayushkamat committed Oct 26, 2023
2 parents 50067fa + 9321ec1 commit ab0540d
Show file tree
Hide file tree
Showing 97 changed files with 6,933 additions and 1,782 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ayushkamat
58 changes: 7 additions & 51 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,13 @@
name: Test
on: [push, pull_request_target]

on: push
jobs:
macos:
name: Test MacOs
name: Test
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9"]
platform: ["macos-10.15"]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Download Docker
run: |
brew install docker docker-machine
# Latest virtualbox has breaking change for mac
brew uninstall virtualbox
cd $(brew --repo homebrew/cask)
git checkout 8670a72380c57c606d6582b645421e31dad2eee2
brew install --cask virtualbox
# Avoids throttling git api in `docker-machine create` cmd
curl --create-dirs -Lo /Users/runner/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v18.09.1-rc1/boot2docker.iso
docker-machine create --driver virtualbox default
docker-machine env default
- name: Install dev
run: |
python3 -m pip install -r dev-requirements.txt
- name: Install latch
run: |
python3 -m pip install -e .
- name: Test
env:
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
run: |
eval $(docker-machine env default)
cd tests; python3 -m pytest -s .
linux:
name: Test Linux
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9"]
platform: ["ubuntu-18.04"]
python: ["3.8", "3.9", "3.10", "3.11"]
platform: ["macos-12", "ubuntu-22.04"]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
Expand All @@ -61,13 +18,12 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dev
run: |
python3 -m pip install -r dev-requirements.txt
pip install -r dev-requirements.txt
- name: Install latch
run: |
python3 -m pip install -e .
pip install .
- name: Test
env:
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
run: |
eval $(docker-machine env default)
cd tests; python3 -m pytest -s .
pytest -s
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ docs/build
.vscode
scratch.py
/scratch
test_*
.latch_report.tar.gz
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ repos:
# - id: sort-simple-yaml
# - id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
args: [--preview]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
Expand Down
Loading

0 comments on commit ab0540d

Please sign in to comment.