CI: Naming steps.

This commit is contained in:
Julien Palard 2022-09-23 15:21:43 +02:00
parent fdc5ceed7d
commit 675d7b7778
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
3 changed files with 11 additions and 21 deletions

View File

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

View File

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

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
pytest
hypothesis
mdtoreveal
django