Skip to content

Commit

Permalink
have deploys depend on tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz authored Jun 20, 2024
1 parent d571149 commit c96da45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 70 deletions.
36 changes: 2 additions & 34 deletions .github/workflows/deploy-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,9 @@ on:
workflow_dispatch:

jobs:
test:
tests:
name: Run tests
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
poetry-version: ["1.5.1"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry ${{ matrix.poetry-version }}
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==${{ matrix.poetry-version }}
- name: Install dependencies
shell: bash
run: |
python -m poetry install
python -m poetry run python scripts/fetch_core.py
python -m poetry run python scripts/zip_templates.py
- name: Test with pytest
run: |
python -m poetry run pytest -v --cov
uses: ./.github/workflows/tests.yml

deploy:
needs: test
Expand Down
38 changes: 2 additions & 36 deletions .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,9 @@ on:
- "legacy-support"

jobs:
test:
tests:
name: Run tests
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.5.1"]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry ${{ matrix.poetry-version }}
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==${{ matrix.poetry-version }}
- name: Install dependencies
shell: bash
run: |
python -m poetry install
python -m poetry run python scripts/fetch_core.py
python -m poetry run python scripts/zip_templates.py
- name: Test with pytest
run: |
python -m poetry run pytest -v --cov
uses: ./.github/workflows/tests.yml

deploy:
needs: test
Expand Down
File renamed without changes.

0 comments on commit c96da45

Please sign in to comment.