-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1933 from vacanza/dev
v0.55
- Loading branch information
Showing
34 changed files
with
2,003 additions
and
197 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
name: Run pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Repository | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
|
@@ -33,6 +33,27 @@ jobs: | |
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
code-ql: | ||
name: CodeQL | ||
needs: | ||
- pre-commit | ||
permissions: | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: python | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: '/language:python' | ||
|
||
test: | ||
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -51,7 +72,8 @@ jobs: | |
- '3.11' | ||
- '3.12' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
|
@@ -84,7 +106,8 @@ jobs: | |
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
|
@@ -111,6 +134,22 @@ jobs: | |
name: dist | ||
path: dist | ||
|
||
- name: Set version | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
run: echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')" >> $GITHUB_ENV | ||
|
||
- name: Generate SBOM | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
run: | | ||
make sbom > holidays-$VERSION-sbom.json | ||
- name: Upload SBOM | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sbom | ||
path: holidays-$VERSION-sbom.json | ||
|
||
test-build: | ||
name: Test build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -122,7 +161,7 @@ jobs: | |
- ubuntu-latest | ||
- windows-latest | ||
steps: | ||
- name: Check out Repository | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
|
@@ -157,7 +196,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- name: Checkout Repository | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
|
@@ -167,7 +206,7 @@ jobs: | |
cache-dependency-path: requirements/docs.txt | ||
python-version: '3.12' | ||
|
||
- name: Install Dependencies | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --requirement requirements/docs.txt | ||
python -m pip install . | ||
|
@@ -187,6 +226,7 @@ jobs: | |
- test-build | ||
- test-docs | ||
permissions: | ||
contents: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -199,8 +239,14 @@ jobs: | |
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- name: Download SBOM | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sbom | ||
|
||
- name: Update Github release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release upload ${{ github.ref_name }} dist/* | ||
gh release upload --repo vacanza/python-holidays ${{ github.ref_name }} dist/* | ||
gh release upload --repo vacanza/python-holidays ${{ github.ref_name }} holidays-*-sbom.json |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ holidays/locale/pot/*.pot | |
!holidays/locale/pot/UA.pot | ||
MANIFEST | ||
Pipfile | ||
sbom.json | ||
venv/ |
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.