1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-09 20:00:01 +02:00

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

This commit is contained in:
Mike Gerber 2023-08-04 19:46:08 +02:00
parent 0319d08218
commit 102615262a
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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: