Skip to content

fix: Avoid errors when no new data is available #101

fix: Avoid errors when no new data is available

fix: Avoid errors when no new data is available #101

Workflow file for this run

name: dao-analyzer CI
on: [push]
jobs:
testing_python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9","3.10", "3.11", "3.12"]
env:
DEBUG: TRUE
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel tox tox-gh-actions
- name: Test with tox
run: tox
package:
runs-on: ubuntu-latest
needs: [testing_python]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Downloading tags to gen version name
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install build deps
run: python -m pip install --upgrade pip build wheel
- name: Build package
run: python -m build
- name: Archive built package
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist/
pypi:
runs-on: ubuntu-latest
needs: [package]
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/' )
# Specifying a GitHub environment is optional, but strongly encouraged
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: same_content_newer
- name: Download built package
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1