Skip to content

chore: move pytest.ini config to pyproject.toml #68

chore: move pytest.ini config to pyproject.toml

chore: move pytest.ini config to pyproject.toml #68

Workflow file for this run

name: ci
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
env:
TEST_TAG: user/create-subtraction:test
jobs:
commitlint:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: docker build .
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Test
uses: docker/build-push-action@v4
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
target: test
release:
runs-on: ubuntu-22.04
if: github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install semantic-release
run: npm i semantic-release@v18.0.0 conventional-changelog-conventionalcommits@4.6.1
- name: Release
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release