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

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

@ -9,7 +9,11 @@ env:
PYPI_URL: https://pypi.org/p/dinglehopper
jobs:
test:
uses: ./.github/workflows/test.yml
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -27,8 +31,6 @@ jobs:
run: .github/workflows/release-check-version-tag
- name: Build package
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
uses: actions/upload-artifact@v3
with:

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

Loading…
Cancel
Save