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