Skip to content

Build

Build #8

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- "*"
schedule:
# Every Monday at 1PM UTC (9AM EST)
- cron: "0 13 * * 1"
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: [3.7, 3.8, 3.9, 3.10.6, 3.11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Graphviz
run: sudo apt-get install graphviz
- name: Setup Packages
run: sh tools/setup.sh
- name: Build Packages
run: sh tools/build.sh
- name: Test Packages
run: sh tools/test.sh
- name: Report Code Coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: sh tools/codecov.sh
- name: Tag/Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sh tools/deploy.sh
- name: Deploy mathy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: cd libraries/mathy_python && sh tools/deploy.sh