Skip to content

Commit

Permalink
Update versions of actions used in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Feb 9, 2022
1 parent 9d4c573 commit f1b14a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
# This should match the "Latest version testable on GitHub Actions"
# in pytest.yml
python-version: "3.8"
# This should match the "Latest version testable on GitHub Actions"
# in pytest.yaml
# with:
# python-version: "3.10"

- name: Cache Python packages
uses: actions/cache@v2
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
# This should match the "Latest version testable on GitHub Actions"
# in pytest.yaml
python-version: "3.8"
# This should match the "Latest version testable on GitHub Actions"
# in pytest.yaml
# with:
# python-version: "3.10"

- name: Cache Python packages
uses: actions/cache@v2
Expand All @@ -40,15 +40,15 @@ jobs:
twine check dist/*
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@v1.5.0
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@v1.5.0
if: github.event_name == 'release'
with:
user: __token__
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

steps:
- name: Cancel previous runs that have not completed
uses: styfle/cancel-workflow-action@0.7.0
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

Expand All @@ -60,7 +60,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
id: setup-r

- name: Cache GAMS installer, Python packages, and R packages
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
# Using the default OpenJDK 1.8 on the macos-latest runner produces
# "Abort trap: 6" when JPype1 starts the JVM
if: ${{ startsWith(matrix.os, 'macos') }}
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: '14'

Expand Down Expand Up @@ -125,4 +125,4 @@ jobs:
run: make --directory=doc html

- name: Upload test coverage to Codecov.io
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2

0 comments on commit f1b14a3

Please sign in to comment.