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

View File

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

4
requirements.txt Normal file
View File

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