Switch docs deployment from FTP to SSH (rsync): Part 4 #235
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| pull_request_target: | |
| branches: | |
| - master | |
| types: [opened, synchronize, reopened, labeled] | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.9", "3.10"] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| SERVICE_ACCOUNT_INFO: ${{ secrets.SERVICE_ACCOUNT_INFO }} | |
| if: | | |
| (github.event_name != 'pull_request_target') || | |
| (!github.event.pull_request.head.repo.fork) || | |
| ( | |
| (github.event.pull_request.head.repo.fork) && | |
| (github.event.action == 'labeled') && | |
| (github.event.label.name == 'Safe to Test') | |
| ) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip3 install --upgrade setuptools | |
| pip3 install .[dev] | |
| - name: Install wkhtmltopdf | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update -y | |
| wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
| sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb || true | |
| sudo apt-get install -f | |
| - name: Run tests | |
| run: | | |
| ss-manager -h | |
| pytest -v | |
| shell: bash | |
| test-python-3-9-12: | |
| runs-on: ubuntu-latest | |
| env: | |
| SERVICE_ACCOUNT_INFO: ${{ secrets.SERVICE_ACCOUNT_INFO }} | |
| if: | | |
| (github.event_name != 'pull_request_target') || | |
| (!github.event.pull_request.head.repo.fork) || | |
| ( | |
| (github.event.pull_request.head.repo.fork) && | |
| (github.event.action == 'labeled') && | |
| (github.event.label.name == 'Safe to Test') | |
| ) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.9.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.9.12" | |
| - name: Install dependencies | |
| run: | | |
| pip3 install --upgrade setuptools | |
| pip3 install .[dev] | |
| - name: Install wkhtmltopdf | |
| run: | | |
| sudo apt-get update -y | |
| wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
| sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb || true | |
| sudo apt-get install -f | |
| - name: Run tests | |
| run: | | |
| ss-manager -h | |
| pytest -v | |
| shell: bash |