Skip to content

Commit

Permalink
Fix GitHub Actions (#348)
Browse files Browse the repository at this point in the history
* Clean up trailing whitespace
* Fix YAML indentation
* Correctly reference the checkout sha
* Correctly reference the base ref
* Add newsfile

Signed-off-by: Dan Callahan <[email protected]>
  • Loading branch information
callahad authored May 28, 2021
1 parent 7eb4b14 commit f45a55c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changelog_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v2
with:
python-version: "3.7"
- run: python -m pip install towncrier
- run: python -m towncrier.check --compare-with=${{ github.base_ref }}
- run: python -m towncrier.check --compare-with="origin/${{ github.base_ref }}"
22 changes: 10 additions & 12 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Linting and tests
on:
on:
pull_request:
push:
branches: ["main"]
jobs:
jobs:
check-code-style:
runs-on: ubuntu-latest
steps:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
with:
python-version: '3.6'
- run: python -m pip install -e .
- run: black --check --diff sydent/ tests/ matrix_is_test/ setup.py
Expand All @@ -21,8 +21,8 @@ jobs:
strategy:
matrix:
python-version: ['3.6', '3.x']
steps:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
Expand All @@ -34,16 +34,14 @@ jobs:
needs: [check-code-style]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.x']
steps:
matrix:
python-version: ['3.6', '3.x']

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install -e .
- run: pip install git+https://github.com/matrix-org/matrix-is-tester.git
- run: trial matrix_is_tester


1 change: 1 addition & 0 deletions changelog.d/348.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix GitHub Actions.

0 comments on commit f45a55c

Please sign in to comment.