Skip to content

Commit

Permalink
ci: Optimizes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed May 15, 2024
1 parent 355e93f commit 27533ce
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/env_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
# continue-on-error: true
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11]
os: [ubuntu-22.04, windows-latest, macos-12, macos-11]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Sets up Python 3.9
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
Expand All @@ -28,4 +29,18 @@ jobs:
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
poetry run python -m pytest pyha_tests -rP
poetry run python -m pytest pyha_tests -rP
- uses: actions/setup-python@v4
name: Sets up Python 3.10
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Run test
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
poetry run python -m pytest pyha_tests -rP

0 comments on commit 27533ce

Please sign in to comment.