From 0987712671fc1f0df1da165f2a48c0f02d2dfc25 Mon Sep 17 00:00:00 2001 From: John Agapiou Date: Wed, 20 Mar 2024 02:34:24 +0000 Subject: [PATCH 1/2] Create sdist-test.yml --- .github/workflows/sdist-test.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sdist-test.yml diff --git a/.github/workflows/sdist-test.yml b/.github/workflows/sdist-test.yml new file mode 100644 index 00000000..24485f07 --- /dev/null +++ b/.github/workflows/sdist-test.yml @@ -0,0 +1,39 @@ +# A workflow to test the sdist that will be released to PyPI + +name: sdist-test + +on: + workflow_dispatch: + +permissions: read-all + +jobs: + sdist-test: + name: Test sdist + runs-on: ubuntu-latest + timeout-minutes: 90 + + steps: + - name: Checkout Melting Pot + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + + - name: Build source distribution + run: python setup.py sdist + + - 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 + + - name: Test source distribution + run: | + pytest -n auto --pyargs meltingpot From 0b8d3e9e6d2627fb25de089772be3264222f1fa7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 17:23:07 +0000 Subject: [PATCH 2/2] Bump actions/checkout from 4.1.1 to 4.1.4 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/b4ffde65f46336ab88eb53be808477a3936bae11...0ad4b8fadaa221de15dcec353f45205ec38ea70b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/pylint-examples.yml | 2 +- .github/workflows/pylint-meltingpot.yml | 2 +- .github/workflows/pypi-publish.yml | 2 +- .github/workflows/pytype-examples.yml | 2 +- .github/workflows/pytype-meltingpot.yml | 2 +- .github/workflows/scorecards-analysis.yml | 2 +- .github/workflows/sdist-test.yml | 2 +- .github/workflows/test-examples.yml | 2 +- .github/workflows/test-meltingpot.yml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d1ec1a81..60c0ad89 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/pylint-examples.yml b/.github/workflows/pylint-examples.yml index 81cf5c82..b623346b 100644 --- a/.github/workflows/pylint-examples.yml +++ b/.github/workflows/pylint-examples.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 5 steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install examples uses: ./.github/actions/install-examples diff --git a/.github/workflows/pylint-meltingpot.yml b/.github/workflows/pylint-meltingpot.yml index 6aebfab5..d7597e33 100644 --- a/.github/workflows/pylint-meltingpot.yml +++ b/.github/workflows/pylint-meltingpot.yml @@ -34,7 +34,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install Melting Pot uses: ./.github/actions/install-meltingpot diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 606c43de..fa7bc2c6 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Build source distribution run: python setup.py sdist diff --git a/.github/workflows/pytype-examples.yml b/.github/workflows/pytype-examples.yml index 3fa6aac3..99b90112 100644 --- a/.github/workflows/pytype-examples.yml +++ b/.github/workflows/pytype-examples.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install examples uses: ./.github/actions/install-examples diff --git a/.github/workflows/pytype-meltingpot.yml b/.github/workflows/pytype-meltingpot.yml index 30949143..cb52ceeb 100644 --- a/.github/workflows/pytype-meltingpot.yml +++ b/.github/workflows/pytype-meltingpot.yml @@ -34,7 +34,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install Melting Pot uses: ./.github/actions/install-meltingpot diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index eeba9353..ab460c27 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -25,7 +25,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b with: persist-credentials: false diff --git a/.github/workflows/sdist-test.yml b/.github/workflows/sdist-test.yml index 24485f07..6eeab8ae 100644 --- a/.github/workflows/sdist-test.yml +++ b/.github/workflows/sdist-test.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Build source distribution run: python setup.py sdist diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index 7083c63f..1f52f1a4 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 90 steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install examples uses: ./.github/actions/install-examples diff --git a/.github/workflows/test-meltingpot.yml b/.github/workflows/test-meltingpot.yml index b29a5691..05799202 100644 --- a/.github/workflows/test-meltingpot.yml +++ b/.github/workflows/test-meltingpot.yml @@ -44,7 +44,7 @@ jobs: - '3.11' steps: - name: Checkout Melting Pot - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - name: Install Melting Pot uses: ./.github/actions/install-meltingpot with: