Skip to content

Commit

Permalink
Update versions used in GitHub Actions (asreview#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 authored Jun 8, 2023
1 parent 2d7fbd7 commit f966dd5
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 48 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install flake8
run: |
pip install flake8 isort flake8-isort
Expand All @@ -22,13 +19,12 @@ jobs:
name: test-minimal-deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install packages
run: |
pip install pytest
Expand All @@ -40,19 +36,18 @@ jobs:
name: test-full-deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install packages
run: |
pip install pytest
pip install --upgrade setuptools>=41.0.0
pip install --no-cache-dir .[sbert]
pip install --no-cache-dir gensim==4.0.1
pip install --no-cache-dir .[doc2vec]
pip install --no-cache-dir .[tensorflow]
pip install --no-cache-dir .[dev]
pip install --no-cache-dir .[test]
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v1
with:
python-version: "3.8" # Version range or exact version of a Python version to use, using semvers version range syntax.
architecture: "x64" # (x64 or x86)
- uses: actions/setup-node@v2
python-version: "3.10"
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ jobs:
runs-on: macos-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
with:
fetch-depth: 0
uses: actions/checkout@v3
- name: Install pandoc
run: |
brew install pandoc
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'
- name: Install asreview
run: |
python -m pip install .
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ jobs:
name: test-asreview-datatools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install packages
run: |
pip install pytest
Expand All @@ -28,11 +27,10 @@ jobs:
name: test-asreview-insights
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install packages
run: |
pip install pytest
Expand All @@ -51,11 +49,10 @@ jobs:
name: test-asreview-wordcloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.10'
- name: Install packages
run: |
pip install pytest
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ name: Deploy and release
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.10"
- name: Get the version (git tag)
id: get_version
run: |
Expand All @@ -25,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
Expand All @@ -38,7 +36,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.0
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -48,7 +46,7 @@ jobs:
prerelease: false
- name: Upload Release Asset (Wheel)
id: upload-release-asset-whl
uses: actions/upload-release-asset@v1.0.1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -58,7 +56,7 @@ jobs:
asset_content_type: application/x-wheel+zip
- name: Upload Release Asset (Sdist)
id: upload-release-asset-sdist
uses: actions/upload-release-asset@v1.0.1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit f966dd5

Please sign in to comment.