Merging upstream version 0.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
53c7599f12
commit
fe219838ef
13 changed files with 159 additions and 116 deletions
29
.github/workflows/doconfly.yml
vendored
Normal file
29
.github/workflows/doconfly.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: doconfly
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
doconfly:
|
||||
name: doconfly job
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PORT: ${{ secrets.PORT }}
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
TAKOYAKI: ${{ secrets.TAKOYAKI }}
|
||||
USER: ${{ secrets.USER }}
|
||||
DOCUMENTATION_PATH: ${{ secrets.DOCUMENTATION_PATH }}
|
||||
DOCUMENTATION_URL: ${{ secrets.DOCUMENTATION_URL }}
|
||||
steps:
|
||||
- run: |
|
||||
which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
||||
eval $(ssh-agent -s)
|
||||
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
ssh-keyscan -p $PORT $TAKOYAKI >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
ssh $USER@$TAKOYAKI -p $PORT "doconfly/doconfly.sh $GITHUB_REPOSITORY $GITHUB_REF $DOCUMENTATION_PATH $DOCUMENTATION_URL"
|
35
.github/workflows/tests.yml
vendored
Normal file
35
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: pydyf's tests
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: ${{ matrix.os }} - ${{ matrix.python-version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install Ghostscript (Ubuntu)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: sudo apt-get update -y && sudo apt-get install ghostscript -y
|
||||
- name: Install Ghostscript (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: brew install ghostscript
|
||||
- name: Install Ghostscript (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-ghostscript --noconfirm'
|
||||
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
|
||||
rm C:\msys64\mingw64\bin\python.exe
|
||||
- name: Upgrade pip and setuptools
|
||||
run: python -m pip install --upgrade pip setuptools
|
||||
- name: Install tests’ requirements
|
||||
run: python -m pip install .[test]
|
||||
- name: Launch tests
|
||||
run: python -m pytest
|
Loading…
Add table
Add a link
Reference in a new issue