diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 429373b..c163e38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -36,10 +36,10 @@ 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 @@ -47,7 +47,7 @@ jobs: 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 @@ -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 @@ -84,7 +84,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Create LFS file list @@ -92,7 +92,7 @@ jobs: 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 @@ -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 @@ -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 @@ -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