-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: CI workflow for macos Signed-off-by: Frost Ming <[email protected]> * fix: python version Signed-off-by: Frost Ming <[email protected]> * fix: use default python and remove linting job Signed-off-by: Frost Ming <[email protected]> * fix Signed-off-by: Frost Ming <[email protected]> * fix: update yaml Signed-off-by: Frost Ming <[email protected]>
- Loading branch information
Showing
4 changed files
with
69 additions
and
90 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
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,33 +10,22 @@ on: | |
- "**" | ||
|
||
jobs: | ||
Linting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- uses: pre-commit/[email protected] | ||
|
||
Tests: | ||
needs: Linting | ||
name: ${{ matrix.os }} / ${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }}-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [Ubuntu, MacOS, Windows] | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | ||
os: [ubuntu-latest, macos-13, windows-latest] | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", 3.12] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -47,22 +36,13 @@ jobs: | |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") | ||
- name: Install Poetry | ||
shell: bash | ||
run: curl -fsSL https://install.python-poetry.org | python - -y --version 1.4.0 | ||
|
||
- name: Update PATH | ||
if: ${{ matrix.os != 'Windows' }} | ||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
|
||
- name: Update Path for Windows | ||
if: ${{ matrix.os == 'Windows' }} | ||
shell: bash | ||
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH | ||
run: pipx install poetry | ||
|
||
- name: Configure Poetry | ||
shell: bash | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
poetry env use python | ||
- name: Set up cache | ||
uses: actions/cache@v3 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.