Use Python 3.12 #357
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: ci | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "alpha" | |
push: | |
branches: | |
- "main" | |
- "alpha" | |
jobs: | |
commitlint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Commitlint | |
uses: wagoid/commitlint-github-action@v5 | |
test: | |
runs-on: ubuntu-22.04 | |
services: | |
redis: | |
image: redis:6.0 | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker Compose | |
run: docker-compose up -d | |
- name: Test | |
run: docker compose exec test poetry run pytest | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Poetry Build | |
run: | | |
poetry check | |
poetry build | |
release: | |
runs-on: ubuntu-22.04 | |
if: github.event_name == 'push' | |
needs: | |
- commitlint | |
- build | |
- test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install semantic-release | |
run: npm i semantic-release@^23.0.0 conventional-changelog-conventionalcommits@^7.0.0 | |
- name: Release | |
env: | |
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: npx semantic-release |