Skip to content

Commit

Permalink
GHA update actions versions and python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Jul 19, 2023
1 parent 1fbf495 commit 8e41e19
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install tools
Expand All @@ -36,18 +36,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.9]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create LFS file list
run: |
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
Expand All @@ -58,7 +58,7 @@ jobs:
run: |
git lfs pull
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -84,15 +84,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create LFS file list
run: |
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
Expand All @@ -102,23 +102,21 @@ jobs:
- name: Git LFS Pull
run: |
git lfs pull
- name: Set up Python 3.7
uses: actions/setup-python@v2
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
env:
PIP_EXTRA_INDEX_URL: https://${{secrets.ARTIFACTORY_RO_USER}}:${{secrets.ARTIFACTORY_RO_TOKEN}}@artifactory.niaid.nih.gov/artifactory/api/pypi/bcbb-pypi/simple
- name: Build package
run: |
python -m build
ls -la dist
- name: Upload package
if: github.event_name == 'push'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: python-packages
path: dist
Expand All @@ -127,9 +125,12 @@ jobs:
# install so that setuptools_scm generate version for package
pip install -r docs/requirements.txt -e .
make -C docs html
env:
PIP_EXTRA_INDEX_URL: https://${{secrets.ARTIFACTORY_RO_USER}}:${{secrets.ARTIFACTORY_RO_TOKEN}}@artifactory.niaid.nih.gov/artifactory/api/pypi/bcbb-pypi/simple

- name: Upload documentation
if: github.event_name == 'push'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: sphinx-docs
path: docs/_build/html
Expand All @@ -152,7 +153,7 @@ jobs:
needs: package_docs
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
id: download
with:
name: python-packages
Expand Down

0 comments on commit 8e41e19

Please sign in to comment.