galaxyproject/ptdk (opens in new tab)
2 workflows
Python package
.github/workflows/ci.yml (opens in new tab)Triggers
pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| build | ubuntu-latest | 5 | actions/checkout@v3 actions/setup-python@v4 |
Raw YAML
name: Python package
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ptdk tests --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ptdk tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pytest
env:
USEGALAXY_EU_APIKEY: ${{ secrets.EU_API_KEY }}
Last fetched:
Triggers
push
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| deploy | ubuntu-latest | 3 | actions/checkout@v2 shimataro/ssh-key-action@v2 |
Raw YAML
name: Deploy
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: false
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: |
Host apps.galaxyproject.eu
User dokku
Port 8080
- name: Deploy 🚀
run: |
git remote add dokku dokku@apps.galaxyproject.eu:ptdk
git push dokku main
Last fetched: