mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 23:54:27 -04:00
Update test.yml to fix python builds
This commit is contained in:
parent
2bb6dca294
commit
3ee3916b29
1 changed files with 11 additions and 10 deletions
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -13,11 +13,11 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04, macos-latest, windows-latest]
|
os: [ubuntu-22.04, macos-latest, windows-latest]
|
||||||
python: [3.9]
|
python: [3.11]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
@ -29,10 +29,10 @@ jobs:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- name: Set up Node JS 14.7.0
|
- name: Set up Node JS
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.12.0
|
node-version: 20.10.0
|
||||||
|
|
||||||
- name: Setup PDM
|
- name: Setup PDM
|
||||||
uses: pdm-project/setup-pdm@v3
|
uses: pdm-project/setup-pdm@v3
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
echo "::set-output name=dir::$(pip cache dir)"
|
||||||
|
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
id: cache-pip
|
id: cache-pip
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
|
@ -56,7 +56,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel pytest bottle build
|
python -m pip install --upgrade pip setuptools wheel pytest bottle build
|
||||||
./bin/build_pip.sh
|
./bin/build_pip.sh
|
||||||
pdm install
|
pdm lock --group=':all'
|
||||||
|
pdm install --group=':all' --dev
|
||||||
|
|
||||||
- name: Get npm cache dir
|
- name: Get npm cache dir
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
|
@ -64,7 +65,7 @@ jobs:
|
||||||
echo "::set-output name=dir::$GITHUB_WORKSPACE/node_modules"
|
echo "::set-output name=dir::$GITHUB_WORKSPACE/node_modules"
|
||||||
|
|
||||||
- name: Cache npm
|
- name: Cache npm
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
id: cache-npm
|
id: cache-npm
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.npm-cache.outputs.dir }}
|
path: ${{ steps.npm-cache.outputs.dir }}
|
||||||
|
@ -99,7 +100,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue