Add release tool #7
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: Release tool CI | |
on: | |
push: | |
paths: | |
- .github/workflows/release.yml | |
- release.py | |
- release_tests.py | |
pull_request: | |
paths: | |
- .github/workflows/release.yml | |
- release.py | |
- release_tests.py | |
jobs: | |
build: | |
name: Running python ${{ matrix.python-version }} on ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
# TODO: Workout how to install git on macos + windows | |
# os: [macOS-latest, ubuntu-latest, windows-latest] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Print Python Version | |
run: python --version --version && which python | |
- name: Installing git CLI tool | |
run: | | |
sudo apt update | |
sudo apt install git | |
- name: Update pip, setuptools + wheels | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Run Unitests via coverage + print report | |
run: | | |
python -m pip install coverage | |
coverage run release_tests.py | |
coverage report -m |