Skip to content

Auto version bumping: first test #22

Auto version bumping: first test

Auto version bumping: first test #22

Workflow file for this run

name: Python-CI
on:
push:
branches:
- master
- develop
- feature/*
pull_request:
branches:
- master
- develop
- feature/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10" # Specify the Python version you need
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install ruff pytest python-semantic-release
- name: Lint with Ruff
run: |
ruff check ./mirtorch
- name: Test with pytest
run: |
pytest ./tests/*
- name: Python Semantic Release
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release version
semantic-release publish
- name: Push changes
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push && git push --tags