This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
bump version number, add missing point to readme #89
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Set up Environment | |
run: | | |
sudo apt install -y python3-wheel | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r ./requirements.txt | |
- name: Unit Tests | |
run: | | |
python3 -m unittest discover tests | |
- name: Static Checks | |
run: | | |
pip3 install flake8 mypy | |
mypy --config-file ./ci/mypy.cfg ./ | |
flake8 --config ./ci/flake8.cfg | |
compiled: | |
runs-on: ubuntu-latest | |
container: | |
image: centos:centos7 # Intentionally old | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup environment | |
run: | | |
yum -y install gcc python3-pip python3-devel python3-wheel upx openssl-devel | |
python3 -m pip install -r ./requirements.txt | |
- name: Build & Run Binary | |
run: | | |
python3 -m pip install pyinstaller | |
chmod +x ./release/generate_linux_binary.sh | |
./release/generate_linux_binary.sh | |
chmod +x ./dist/varc | |
./dist/varc # check it doesn't return non 0 exit status, i.e. crash | |
fedora: | |
runs-on: ubuntu-latest | |
container: | |
image: fedora | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: | | |
cat /etc/os-release | |
yum -y install gcc python3-devel python3-wheel openssl-devel | |
python3 -m pip install yara-python | |
pip3 install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py | |
centos: | |
runs-on: ubuntu-latest | |
container: | |
image: centos:centos7 # Intentionally old | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: | | |
cat /etc/os-release | |
yum -y install python3 | |
pip3 install --upgrade pip | |
yum -y install gcc python3-devel upx openssl-devel | |
pip3 install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py | |
debian: | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.9.11-bullseye | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: | | |
cat /etc/os-release | |
python -m pip install --upgrade pip | |
pip3 install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py | |
alpine: | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.9.11-alpine | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: | | |
cat /etc/os-release | |
python -m pip install --upgrade pip | |
apk update | |
apk add python3-dev py3-wheel gcc libc-dev linux-headers libmagic libressl-dev | |
#pip3 install -r ./requirements.txt | |
python -m pip install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Setup Environment | |
run: | | |
pip3 install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py | |
macos: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Setup Environment | |
run: | | |
pip3 install -r ./requirements.txt | |
- name: Run varc Python | |
run: | | |
python3 varc.py |