modification on publish_to_pypi.yml ci/cd actions #7
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: merge-to-main | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- '**' | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up the environment | |
uses: ./.github/workflows/setup-poetry | |
- name: Run checks | |
uses: ./.github/workflows/checks | |
tox: | |
runs-on: ubuntu-latest | |
needs: quality | |
strategy: | |
matrix: | |
python-version: [ '3.10' ] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up the environment | |
uses: ./.github/workflows/setup-poetry | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Test with tox | |
run: | | |
source .venv/bin/activate | |
poetry add tox-gh-actions | |
tox |