Skip to content

Commit d6765e7

Browse files
bhamailmadpah
andauthored
chore: changes due to main branch rename to main
* more changes for default branch switch * updated for master -> main branch change Signed-off-by: Paul Horton <[email protected]> * doc: fixed badge for build status Signed-off-by: Paul Horton <[email protected]> --------- Signed-off-by: Paul Horton <[email protected]> Co-authored-by: Paul Horton <[email protected]>
1 parent 953a39a commit d6765e7

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ name: Python CI
1919

2020
on:
2121
push:
22-
branches: ["master", "main"]
22+
branches: ["main"]
2323
pull_request:
2424
workflow_dispatch:
2525
schedule:
@@ -29,13 +29,13 @@ on:
2929

3030
env:
3131
REPORTS_DIR: CI_reports
32-
PYTHON_VERISON_DEFAULT: "3.10"
32+
PYTHON_VERSION_DEFAULT: "3.10"
3333
POETRY_VERSION: "1.1.11"
3434

3535
jobs:
3636
coding-standards:
3737
name: Linting & CodingStandards
38-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-20.04
3939
steps:
4040
- name: Checkout
4141
# see https://github.com/actions/checkout
@@ -44,7 +44,7 @@ jobs:
4444
# see https://github.com/actions/setup-python
4545
uses: actions/setup-python@v2
4646
with:
47-
python-version: ${{ env.PYTHON_VERISON_DEFAULT }}
47+
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
4848
architecture: 'x64'
4949
- name: Install poetry
5050
# see https://github.com/marketplace/actions/setup-poetry
@@ -58,7 +58,7 @@ jobs:
5858

5959
static-code-analysis:
6060
name: StaticCodingAnalysis (py${{ matrix.python-version}} ${{ matrix.toxenv-factor }})
61-
runs-on: ubuntu-latest
61+
runs-on: ubuntu-20.04
6262
strategy:
6363
fail-fast: false
6464
matrix:
@@ -97,7 +97,7 @@ jobs:
9797
strategy:
9898
fail-fast: false
9999
matrix:
100-
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
100+
os: ['ubuntu-20.04', 'windows-latest', 'macos-latest']
101101
python-version:
102102
- "3.10" # highest supported
103103
- "3.9"
@@ -107,7 +107,7 @@ jobs:
107107
toxenv-factor: ['locked']
108108
include:
109109
- # test with the lowest dependencies
110-
os: 'ubuntu-latest'
110+
os: 'ubuntu-20.04'
111111
python-version: '3.6'
112112
toxenv: 'lowest'
113113
timeout-minutes: 30
@@ -152,4 +152,4 @@ jobs:
152152
with:
153153
name: ${{ env.REPORTS_ARTIFACT }}
154154
path: ${{ env.REPORTS_DIR }}
155-
if-no-files-found: error
155+
if-no-files-found: error

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
release:
3333
# https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
3434
# limit this to being run on regular commits, not the commits that semantic-release will create
35-
if: github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):')
35+
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
3636
runs-on: ubuntu-latest
3737
concurrency: release
3838
outputs:

.github/workflows/manual-release-candidate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
- name: Publish Pre Release 📦 to PyPI
5151
uses: pypa/gh-action-pypi-publish@master
5252
with:
53-
password: ${{ secrets.PYPI_TOKEN }}
53+
password: ${{ secrets.PYPI_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Python Library for quering OSS Index
2020

21-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/sonatype-nexus-community/ossindex-python/Python%20CI)
21+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/sonatype-nexus-community/ossindex-python/ci.yml?branch=main)
2222
![Python Version Support](https://img.shields.io/badge/python-3.6+-blue)
2323
![PyPI Version](https://img.shields.io/pypi/v/ossindex-lib?label=PyPI&logo=pypi)
2424
[![Documentation](https://readthedocs.org/projects/ossindex-library/badge/?version=latest)](https://readthedocs.org/projects/ossindex-library)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ build-backend = "poetry.core.masonry.api"
8282
version_variable = [
8383
"pyproject.toml:version"
8484
]
85-
branch = "master"
85+
branch = "main"
8686
upload_to_pypi = true
8787
upload_to_release = true
8888
build_command = "pip install poetry && poetry build"

0 commit comments

Comments
 (0)