forked from rdmorganiser/rdmo-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9075d0
commit 3050588
Showing
4 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
on: | ||
push: | ||
paths: | ||
- README.md | ||
|
||
name: Render README | ||
|
||
on: | ||
push: | ||
paths: | ||
- README.md | ||
|
||
jobs: | ||
render: | ||
name: Render README | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Render README | ||
run: tools/render-readme.sh | ||
- name: Commit results | ||
run: | | ||
git commit README.md -m 'Render README.md' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" | ||
render: | ||
name: Render README | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Render README | ||
run: tools/render-readme.sh | ||
- name: Commit results | ||
run: | | ||
git commit README.md -m 'Render README.md' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
on: push | ||
|
||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Python 3.8 | ||
uses: actions/setup-python@v2 | ||
- name: Use Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Update package index | ||
run: sudo apt-get update | ||
python-version: '3.11' | ||
cache: pip | ||
cache-dependency-path: .github/workflows/requirements.txt | ||
|
||
- name: Install xmllint | ||
run: sudo apt-get install -y libxml2-utils | ||
run: | | ||
sudo apt install --yes libxml2-utils | ||
xmllint --version | ||
- name: Install requirements | ||
run: pip install pytest | ||
run: pip install -r .github/workflows/requirements.txt | ||
|
||
- name: Run tests | ||
run: pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters