Skip to content

Commit

Permalink
Remove unused component from GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Jun 19, 2024
1 parent 8be3653 commit 3d1540b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 77 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/python-publish.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy to PyPi

on:
release:
types: [published]

jobs:
build:
name: Build wheels and source distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install build dependencies
run: python -m pip install --upgrade build

- name: Build source distribution
run: python -m build

- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error

publish:
name: Publish release
needs:
- build
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
path: dist

- name: Push build artifacts to PyPi
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
33 changes: 3 additions & 30 deletions .github/workflows/python-app.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: test

on:
push:
branches: [ "main" ]
branches: [ "main", "clean_ci" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
branches: [ "main", "clean_ci" ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -31,7 +28,7 @@ jobs:
python-version: "3.11"
architecture: "x64"
- run: pip3 install hatch
- run: hatch run tests.py3.9-2.7:static-check
- run: hatch run tests.py3.11-2.9:static-check

Run-Unit-Tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,18 +75,6 @@ jobs:
matrix:
python-version: ["3.11"]
airflow-version: ["2.9"]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -114,18 +99,6 @@ jobs:
- name: Test Anyscale against Airflow ${{ matrix.airflow-version }} and Python ${{ matrix.python-version }}
run: |
hatch run tests.py${{ matrix.python-version }}-${{ matrix.airflow-version }}:test-integration
env:
AIRFLOW_HOME: /home/runner/work/astro-provider-anyscale/astro-provider-anyscale/
AIRFLOW_CONN_AIRFLOW_DB: postgres://postgres:postgres@0.0.0.0:5432/postgres
AIRFLOW__CORE__DAGBAG_IMPORT_TIMEOUT: 300.0 # Increased timeout
PYTHONPATH: /home/runner/work/astro-provider-anyscale/astro-provider-anyscale/:$PYTHONPATH
ANYSCALE_CLI_TOKEN: ${{ secrets.ANYSCALE_CLI_TOKEN }}
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_SCHEMA: public
POSTGRES_PORT: 5432
- name: Upload coverage to Github
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 3d1540b

Please sign in to comment.