Skip to content

Commit

Permalink
Упрощены GHA workflows (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Nov 17, 2023
1 parent 64c431b commit b0f5b28
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 67 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Black

on: [pull_request, push]
on: [ pull_request ]

jobs:
black:
runs-on: ubuntu-latest

steps:
- name: Checkout repository.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python.
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout repository.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python.
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/codeql_analysis.yml

This file was deleted.

13 changes: 6 additions & 7 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
name: Build and upload package to PyPI
name: Build and publish package to PyPI

on:
push:
branches:
- pypi
workflow_dispatch:
release:
types: [created]
types: [ created ]

jobs:
build_and_publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python.
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/main' && github.repository == 'MarshalX/yandex-music-api'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/pytest.yml

This file was deleted.

15 changes: 6 additions & 9 deletions .github/workflows/pytest_full.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
name: pytest on many platforms
name: Unit tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
pytest:
unit_tests:
runs-on: ${{matrix.os}}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
os: [ macos-latest, ubuntu-latest, windows-latest ]
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]

steps:
- name: Checkout repository.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}.
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down

0 comments on commit b0f5b28

Please sign in to comment.