From 471048ce127f8c6130bd1abe53a8f84bac662fe7 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sat, 30 Sep 2023 15:29:20 +0800 Subject: [PATCH] ci(github-actions): update action versions and comment out POETRY_VIRTUALENVS_CREATE --- .github/workflows/python.yml | 37 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 4334a27..374dfe9 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -2,38 +2,37 @@ name: Python CI on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] env: - POETRY_VIRTUALENVS_CREATE: false + # POETRY_VIRTUALENVS_CREATE: false AIRFLOW_TEST_MODE: true jobs: build: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v2 - - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 + - uses: actions/checkout@v4 - - name: Install dependencies - run: | - pip install -U poetry - poetry install + - name: Set up Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 - - name: Run linters - run: make lint + - name: Install dependencies + run: | + pip install -U poetry + poetry install - - name: Run test - run: make test + - name: Run linters + run: make lint - - name: Coverage - run: make coverage + - name: Run test + run: make test + - name: Coverage + run: make coverage # CD part # - name: Push dags to GCS