CI: Naming steps.
This commit is contained in:
parent
fdc5ceed7d
commit
675d7b7778
|
@ -5,21 +5,8 @@ name: Publish
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: test
|
||||
run: |
|
||||
python -m pip install pytest hypothesis django
|
||||
make -C python-initiation test
|
||||
make -C python-avance test
|
||||
# TODO: The following needs a configured Django:
|
||||
# make -C drf-initiation test
|
||||
# make -C django-initiation test
|
||||
|
||||
build_and_publish:
|
||||
needs: test
|
||||
publish:
|
||||
name: ${{ matrix.directory }}
|
||||
strategy:
|
||||
matrix:
|
||||
directory:
|
||||
|
|
|
@ -12,16 +12,17 @@ on:
|
|||
known_hosts:
|
||||
required: true
|
||||
jobs:
|
||||
build_and_publish:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- run: |
|
||||
sudo apt-get install -y cutycapt
|
||||
- name: Build and Publish
|
||||
cache: pip
|
||||
- run: sudo apt-get install -y cutycapt
|
||||
- run: make -C ${{ inputs.directory }} test
|
||||
- name: Publish
|
||||
env:
|
||||
deploy_key: ${{secrets.deploy_key}}
|
||||
known_hosts: ${{secrets.known_hosts}}
|
||||
|
@ -35,7 +36,5 @@ jobs:
|
|||
ssh-add
|
||||
rm ${HOME}/.ssh/id_ed25519
|
||||
export deploy_key=""
|
||||
python3 -m pip install --user --upgrade pip
|
||||
python3 -m pip install --user mdtoreveal
|
||||
export PATH="$HOME/.local/bin/:$PATH"
|
||||
make -C ${{ inputs.directory }} rsync
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
pytest
|
||||
hypothesis
|
||||
mdtoreveal
|
||||
django
|
Loading…
Reference in New Issue