chore(deps): update dependency python-semantic-release to v8.7.0 #107
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: Build And Test | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
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 -r requirements.txt | |
- name: Code Style | |
run: | | |
./code_style.sh | |
- name: Test | |
run: | | |
./run_tests.sh | |
release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
environment: Production | |
if: github.repository == 'andrewjw/glowprom' && github.ref == 'refs/heads/master' | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Submit Coverage | |
run: | | |
./run_tests.sh | |
COVERALLS_REPO_TOKEN=${{ secrets.GLOWPROM_COVERALLS_REPO_TOKEN }} coveralls | |
- name: Release | |
run: | | |
git config --global user.email "andrewjwilkinson@gmail.com" | |
git config --global user.name "Andrew Wilkinson" | |
export VERSION=$(semantic-release --noop version) | |
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} semantic-release version | |
if [ -d "dist/" ]; then | |
twine check dist/* | |
TWINE_USERNAME=__token__ TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} twine upload dist/* | |
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} semantic-release publish | |
DOCKER_TOKEN=${{ secrets.DOCKER_TOKEN }} TAG=$VERSION ./docker_push.sh | |
fi |