Skip to content

Add release-please workflow (#75) #87

Add release-please workflow (#75)

Add release-please workflow (#75) #87

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
Cancel-Previous:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: khan/[email protected]
with:
workflows: "python.yml"
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
Lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pipenv"
cache-dependency-path: |
Pipfile.lock
- name: Install pipenv and deps
run: |
python -m pip install --upgrade pipenv wheel
make deps
- name: Lint source code
run: make lint
Unit-Test:
runs-on: ubuntu-latest
needs:
- Lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pipenv"
cache-dependency-path: |
Pipfile.lock
- name: Install pipenv and deps
run: |
python -m pip install --upgrade pipenv wheel
make deps
- name: Install dependencies
run: make deps
- name: Run tests
run: make test-ci
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
flags: main
token: ${{ secrets.CODECOV_TOKEN }}
slug: axioma-ai-labs/aa-core