From 7e210073dd549cbd60d488b4b9e68220122e1f6b Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Thu, 11 Jul 2024 13:46:59 +0200 Subject: [PATCH 1/4] test gh action --- .github/workflows/build-and-release.yml | 82 ------------------------- .github/workflows/letssee.yml | 15 +++++ 2 files changed, 15 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/build-and-release.yml create mode 100644 .github/workflows/letssee.yml diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml deleted file mode 100644 index 72d90ed9..00000000 --- a/.github/workflows/build-and-release.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Build and release - -on: - push: - branches: [master] - pull_request: - branches: [master] - - -jobs: - Test: - runs-on: ubuntu-latest - strategy: - matrix: - suite: - [ - unit, - functional_wsp, - functional_arxiv, - functional_desy, - functional_cds, - functional_pos, - functional_elsevier, - functional_aps - ] - python-version: [2.7] - - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Install python dependencies - run: | - python -m pip install pip==24.0 - pip install setuptools wheel check-manifest - pip install -e .[tests] - - - name: Show python dependencies - run: | - pip freeze - - - name: Install dependencies - run: | - docker-compose -f docker-compose.deps.py2.yml build - docker-compose -f docker-compose.test.py2.yml run --rm scrapyd-deploy - - - name: Print logs if failure - if: ${{ failure() }} - run: | - docker-compose -f docker-compose.test.py2.yml logs --tail=200 - - - name: Run tests - run: | - docker-compose -f docker-compose.test.py2.yml run --rm ${{ matrix.suite }} - - - Release: - if: ${{ github.event_name == 'push' }} - needs: Test - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Install python dependencies - run: | - pip install --user --upgrade pip - pip --no-cache-dir install --user setuptools wheel check-manifest - pip --no-cache-dir install --user -e .[tests] - - - name: Build package - run: python setup.py sdist bdist_wheel - - - name: Publish package - uses: pypa/gh-action-pypi-publish@v1.3.1 - with: - user: __token__ - password: ${{ secrets.PYPI_PASSWORD }} diff --git a/.github/workflows/letssee.yml b/.github/workflows/letssee.yml new file mode 100644 index 00000000..7f5d140c --- /dev/null +++ b/.github/workflows/letssee.yml @@ -0,0 +1,15 @@ +name: Pull request master + +on: + push: + branches: + - master + +jobs: + echo: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run a one-line script + run: echo Hello, world! From 22d22b595c724ea53de59d582eb241bd109a2712 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Thu, 11 Jul 2024 13:48:59 +0200 Subject: [PATCH 2/4] fixes --- .github/workflows/letssee.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/letssee.yml b/.github/workflows/letssee.yml index 7f5d140c..85b4661a 100644 --- a/.github/workflows/letssee.yml +++ b/.github/workflows/letssee.yml @@ -1,7 +1,7 @@ name: Pull request master on: - push: + pull_request_target: branches: - master From f6b06dfcc50a68338e14f07f25464a0d1a071939 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Thu, 11 Jul 2024 13:53:09 +0200 Subject: [PATCH 3/4] edsd --- .github/workflows/letssee.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/letssee.yml b/.github/workflows/letssee.yml index 85b4661a..a7afcd09 100644 --- a/.github/workflows/letssee.yml +++ b/.github/workflows/letssee.yml @@ -1,7 +1,7 @@ name: Pull request master on: - pull_request_target: + pull_request: branches: - master From b3804671f6aff1915440d7ec4fcf8cab5365d692 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Thu, 11 Jul 2024 14:05:59 +0200 Subject: [PATCH 4/4] aaaa --- .github/workflows/letssee.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/letssee.yml b/.github/workflows/letssee.yml index a7afcd09..36280417 100644 --- a/.github/workflows/letssee.yml +++ b/.github/workflows/letssee.yml @@ -13,3 +13,5 @@ jobs: uses: actions/checkout@v2 - name: Run a one-line script run: echo Hello, world! + - name: Echo something + run: echo ${{ secrets.TEST_ME }}