Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/checkout from 4.1.1 to 4.1.6 #80

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install examples
uses: ./.github/actions/install-examples
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint-meltingpot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install Melting Pot
uses: ./.github/actions/install-meltingpot
Expand Down
77 changes: 64 additions & 13 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
types: [published]
workflow_dispatch:
inputs:
test_sdist:
description: 'Test sdist before upload'
type: boolean
default: true
upload_to_test_pypi:
description: 'Upload to Test PyPi'
type: boolean
default: true
default: false
upload_to_pypi:
description: 'Upload to PyPi'
type: boolean
Expand All @@ -19,30 +23,77 @@ on:
permissions: read-all

jobs:
pypi-publish:
name: Upload to PyPI
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout Concordia
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Check Python setup
run: |
python --version
pip list
- name: Build distribution
run: python setup.py sdist bdist_wheel
- name: Save artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: dist
path: ./dist
retention-days: 1

test:
name: Test
needs: build
if: github.event_name == 'release' || inputs.test_sdist
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Load artifact
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e
with:
name: dist
path: ./dist
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install pytest-xdist setuptools
- name: Install source distribution
run: |
pip install dist/*.tar.gz
pip list
- name: Test source distribution
run: |
pytest -n auto --pyargs meltingpot

publish:
name: Publish
needs: test
if: ${{ ! failure() }}
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dm-meltingpot
url: https://pypi.org/p/gdm-concordia
permissions:
id-token: write
timeout-minutes: 90

timeout-minutes: 5
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Build source distribution
run: python setup.py sdist

- name: Load artifact
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e
with:
name: dist
path: ./dist
- name: Publish to TestPyPI
if: github.event_name == 'release' || inputs.upload_to_test_pypi
uses: pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06
with:
repository-url: https://test.pypi.org/legacy/
verbose: true

- name: Publish to PyPI
if: github.event_name == 'release' || inputs.upload_to_pypi
uses: pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytype-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install examples
uses: ./.github/actions/install-examples
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytype-meltingpot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install Melting Pot
uses: ./.github/actions/install-meltingpot
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdist-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Build source distribution
run: python setup.py sdist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 90
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install examples
uses: ./.github/actions/install-examples
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-meltingpot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- '3.11'
steps:
- name: Checkout Melting Pot
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Install Melting Pot
uses: ./.github/actions/install-meltingpot
with:
Expand Down
Loading