Skip to content

chore: Bump androguard from 3.3.5 to 4.1.0 (#85) #110

chore: Bump androguard from 3.3.5 to 4.1.0 (#85)

chore: Bump androguard from 3.3.5 to 4.1.0 (#85) #110

Workflow file for this run

---
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
- v1
tags:
- v*
pull_request:
branches:
- v1
workflow_dispatch:
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
steps:
- uses: actions/checkout@v4
- 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
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8
- name: Run tests
run: |
export PATH="$PATH:$PWD/exodus_core/dexdump/"
python -m unittest discover -v -s exodus_core -p "test_*.py"
python setup.py sdist
- name: Upload archive
uses: actions/upload-artifact@v4
with:
name: release
path: dist
release:
name: Create Github release
needs: build
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download archive
uses: actions/download-artifact@v4
with:
name: release
path: dist
- name: Publish package to pypi on tag
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Create release
run: |
cd dist
echo "ARCHIVE=$(ls *.tar.gz)" >> $GITHUB_ENV
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --generate-notes
- name: Upload archive on release
run: gh release upload ${{ github.ref_name }} dist/$ARCHIVE