-
Notifications
You must be signed in to change notification settings - Fork 13
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 #303 from artefactory/ci/update-ci-cd
ci: update ci cd
- Loading branch information
Showing
32 changed files
with
210 additions
and
5,831 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://help.github.com/en/articles/about-code-owners | ||
|
||
* @julesbertrand @amaleelhamri @hugovasselin @Guillaume6606 |
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 |
---|---|---|
|
@@ -10,23 +10,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Github Container Registry | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
|
||
- name: Set tag name | ||
id: tag | ||
run: echo ::set-output name=tag_name::${GITHUB_REF#*\/*\/} | ||
run: echo "tag_name=${GITHUB_REF//\//-}" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
|
@@ -47,7 +46,8 @@ jobs: | |
id: scan | ||
with: | ||
image: "ghcr.io/artefactory/nlpretext:${{ steps.tag.outputs.tag_name }}" | ||
acs-report-enable: true | ||
output-format: table | ||
|
||
- name: upload Anchore scan SARIF report | ||
if: success() || failure() | ||
uses: github/codeql-action/upload-sarif@v1 | ||
|
@@ -65,9 +65,10 @@ jobs: | |
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2.2.2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -77,7 +78,7 @@ jobs: | |
make download-poetry | ||
- name: Set up cache | ||
uses: actions/cache@v3.2.4 | ||
uses: actions/cache@v3.3.2 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} | ||
|
@@ -88,7 +89,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
poetry install -E torch | ||
poetry install -E torch -E dask | ||
- name: Publish to PyPI | ||
env: | ||
|
@@ -99,8 +100,7 @@ jobs: | |
- name: Run build script for Sphinx pages | ||
run: | | ||
source $(poetry env info | grep Path | awk '{ print $2 }')/bin/activate | ||
git config --global user.name "Github-Pages Bot" | ||
git config --global user.email "[email protected]" | ||
sh docs/scripts/buildsite.sh | ||
poetry run git config --global user.name "Github-Pages Bot" | ||
poetry run git config --global user.email "[email protected]" | ||
poetry run sh docs/scripts/buildsite.sh | ||
shell: bash |
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 |
---|---|---|
|
@@ -171,6 +171,7 @@ coverage.xml | |
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
.ruff_cache/ | ||
|
||
# Translations | ||
*.mo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,4 +118,4 @@ | |
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 1 | ||
} | ||
} |
Oops, something went wrong.