Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Apr 22, 2023
1 parent 1415236 commit 1b56094
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:
branches: [master]

env:
WINDOWS_OS_NAME: windows-2019
WINDOWS_OS_NAME: windows-2022
LINUX_OS_NAME: ubuntu-20.04
POETRY_CACHE_DIR: ~/.cache/pypoetry
CONFIG_POETRY_PATH: ${USERPROFILE}\.local\venv\Scripts

jobs:
test:
Expand All @@ -19,10 +20,10 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-20.04, windows-2019]
os: [ubuntu-20.04, windows-2022]
openmp-on: [true, false]
exclude:
- os: windows-2019
- os: windows-2022
openmp-on: true

steps:
Expand All @@ -39,15 +40,13 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1.3.3
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true
version: 1.4.0
virtualenvs-in-project: true

- name: Add Poetry to the PATH environment variable
shell: bash
run: |
echo "${{ env.config-poetry-path }}" >> $GITHUB_PATH
echo "${{ env.CONFIG_POETRY_PATH }}" >> $GITHUB_PATH
- name: Set cache dir
run: poetry config cache-dir ${{ env.POETRY_CACHE_DIR }}
Expand All @@ -60,7 +59,7 @@ jobs:
- name: Cache venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ env.POETRY_CACHE_DIR }}
Expand Down

0 comments on commit 1b56094

Please sign in to comment.