Bump flake8 from 6.0.0 to 7.0.0 #402
This file contains 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: Python application | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements.dev.txt | |
- name: Lint and test | |
run: make test | |
deploy: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
concurrency: deploy | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Deploy | |
uses: dokku/[email protected] | |
with: | |
git_remote_url: 'ssh://[email protected]/yaas' | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
git_push_flags: --force |