Skip to content

Commit

Permalink
Initial version of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestoLoma committed Aug 13, 2024
1 parent b0b2717 commit beb315a
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .conda-envs/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package:
name: "pyatlan"
version: "{{ environ['GIT_DESCRIBE_TAG'] }}"

source:
path: ../../

build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"

requirements:
host:
- jinja2 ==3.1.4
- lazy_loader~ 0.4
- pip
- pydantic >=2.0.0,<3.0.0
- python
- requests >=2.24
- tenacity ==8.2.3
- urllib3 >=1.26.0,<3
run:
- jinja2 ==3.1.4
- lazy_loader~ 0.4
- pydantic >=2.0.0,<3.0.0
- python
- requests >=2.24
- tenacity ==8.2.3
- urllib3 >=1.26.0,<3

test:
imports:
- pyatlan
- pyatlan.cache
- pyatlan.client
- pyatlan.events
- pyatlan.generator
- pyatlan.generator.templates
- pyatlan.model
- pyatlan.model.assets
- pyatlan.model.assets.core
- pyatlan.model.fields
- pyatlan.model.packages
- pyatlan.model.packages.base
- pyatlan.pkg
- pyatlan.pkg.templates
- tests
- tests.integration
- tests.unit
- tests.unit.model
- tests.unit.model.fields
- tests.unit.pkg

about:
home: "https://github.com/atlanhq/atlan-python"
license: Apache Software
license_family: APACHE
license_file:
summary: "Atlan Python Client"
doc_url:
dev_url:

extra:
recipe-maintainers:
- your-github-id-here
38 changes: 38 additions & 0 deletions .github/workflows/build_and_upload_conda_packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Build and upload conda packages

on:
release:
types: [ published ]
workflow_dispatch:

jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: pyatlan/.conda-envs/meta.yaml # Path to the build conda environment
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: devtools/conda-build
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
platform_linux-64: true
platform_osx-64: true
platform_win-64: true
user: uibcdf
label: auto
token: ${{ secrets.ANACONDA_API_TOKEN }} # Replace with the right name of your secret

0 comments on commit beb315a

Please sign in to comment.