2412 #15
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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: DATA | |
| on: | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| sudo apt-get install libwww-perl libxml-parser-perl | |
| pip install bs4 tqdm numpy regex urllib3 glob2 elementpath | |
| - name: Build databases | |
| run: | | |
| python3 data.py | |
| - name: Upload release | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DATA | |
| path: | | |
| databases.zip | |
| - name: SSH to mamba | |
| uses: appleboy/[email protected] | |
| with: | |
| host: apps4av.org | |
| username: apps4av | |
| password: ${{ secrets.MAMBA_PASSWORD }} | |
| port: 22 | |
| source: "databases.zip,databasesx.zip" | |
| target: /home/apps4av/mamba.dreamhosters.com/new/staging |