⚙ GitHub Actions: Call test workflow when (before) deploying

pull/90/head v0.9.1
Mike Gerber 1 year ago
parent 0319d08218
commit 102615262a

@ -9,7 +9,11 @@ env:
PYPI_URL: https://pypi.org/p/dinglehopper PYPI_URL: https://pypi.org/p/dinglehopper
jobs: jobs:
test:
uses: ./.github/workflows/test.yml
build: build:
needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -27,8 +31,6 @@ jobs:
run: .github/workflows/release-check-version-tag run: .github/workflows/release-check-version-tag
- name: Build package - name: Build package
run: python3 -m pip install --upgrade build && python3 -m build run: python3 -m pip install --upgrade build && python3 -m build
- name: Test
run: python3 -m pip install -r requirements-dev.txt && pytest
- name: Upload dist - name: Upload dist
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

@ -1,13 +1,20 @@
name: test name: test
on: on:
push: push:
branches: branches:
- master - master
schedule: schedule:
- cron: "00 16 07 * *" # = monthly - cron: "00 16 07 * *" # = monthly
# Allow manually running (from GitHub Web)
workflow_dispatch: workflow_dispatch:
# Allow calling this workflow (e.g. from release workflow)
workflow_call:
jobs: jobs:
test: test:

Loading…
Cancel
Save