Skip to content

Commit

Permalink
Merge pull request #144 from nyuichi/zeptometer/GH-142
Browse files Browse the repository at this point in the history
Migrate unit tests to satysfi-test
  • Loading branch information
nyuichi committed Apr 7, 2024
2 parents a64c829 + 236aab2 commit 37e6774
Show file tree
Hide file tree
Showing 31 changed files with 1,282 additions and 1,027 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,45 @@ name: CI
on: [push, pull_request]

jobs:
unit-test:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
version: [
0.0.6,
0.0.7,
0.0.8,
0.0.9-6-ge0304803,
0.0.10,
0.0.11
]
container:
image: amutake/satysfi:${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- name: Install Satyrographos dependencies
run: |
export HOME=/root
eval $(opam env)
opam update
opam pin add satysfi ${{ matrix.version }}
opam pin add satysfi-base.opam "file://${PWD}"
satyrographos install -l base
- name: Run tests
run: |
export HOME=/root
eval $(opam env)
cd test && sh run-test.sh -v
- if: always()
name: Install Apt dependencies
run: apt-get update && apt-get install -y xz-utils liblzma-dev
- if: ${{ failure() }}
name: Upload artifact
uses: actions/upload-artifact@master
with:
name: satysfi-test-report-${{ matrix.version }}
path: test/report.txt
regression-test:
name: Regression tests
runs-on: ubuntu-latest
Expand All @@ -12,7 +51,6 @@ jobs:
matrix:
satysfi-version:
[
0.0.5,
0.0.6,
0.0.7,
]
Expand All @@ -26,7 +64,7 @@ jobs:
eval $(opam env)
opam update
opam pin add satysfi ${{ matrix.satysfi-version }}
opam pin add --verbose --yes "."
opam pin add satysfi-base.opam "file://${PWD}"
satyrographos install -l base
- name: Run regression tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __test__/satysrc/*.pdf
*.satysfi-aux
node_modules
*~
report.txt
2 changes: 1 addition & 1 deletion Satyristes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
((packageDir "src")
))
(opam "satysfi-base.opam")
(dependencies ((fonts-dejavu ()))))
(dependencies ((fonts-dejavu ()) (test ()))))
Loading

0 comments on commit 37e6774

Please sign in to comment.