Notify superadmins about new non-approved VectorDatasets #305
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: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| python-version: ["3.13"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup PostgreSQL with Postgis | |
| uses: nyurik/action-setup-postgis@v2.1 | |
| with: | |
| database: proenergia | |
| id: postgres | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update -qq -y | |
| sudo apt-get install -y binutils libproj-dev gdal-bin python3-gdal libgeos-dev libyaml-dev tippecanoe gettext | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile Messages | |
| run: | | |
| python manage.py compilemessages -f | |
| - name: Run Tests | |
| run: | | |
| coverage run manage.py test --settings=proenergia.config.local | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} |