File tree Expand file tree Collapse file tree 3 files changed +36
-9
lines changed
Expand file tree Collapse file tree 3 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 3636 - name : build documents
3737 run : make -C doc html
3838
39+ - name : Run tests and upload coverage
40+ shell : bash -l {0}
41+ run : |
42+ conda activate test
43+ coverage run -m pytest -vv -s
44+ coverage report -m
45+ codecov
46+
47+ - name : Upload coverage to Codecov
48+ uses : codecov/codecov-action@v4
49+ env :
50+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
51+
3952 - name : Deploy
40- uses : peaceiris/actions-gh-pages@v3
53+ uses : peaceiris/actions-gh-pages@v4
4154 with :
4255 github_token : ${{ secrets.GITHUB_TOKEN }}
4356 publish_dir : ./doc/build/html
Original file line number Diff line number Diff line change @@ -44,17 +44,12 @@ jobs:
4444 conda activate test
4545 conda install --file requirements/run.txt
4646 conda install --file requirements/test.txt
47- pip install -e .
48-
47+ pip install .
48+
4949 - name : Validate diffpy.structure
5050 shell : bash -l {0}
5151 run : |
5252 conda activate test
53- coverage run -m diffpy.structure.tests.run
53+ coverage run -m pytest -vv -s
5454 coverage report -m
5555 codecov
56-
57- - name : Upload coverage to Codecov
58- uses : codecov/codecov-action@v4
59- env :
60- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : pre-commit
2+
3+ on :
4+ pull_request :
5+ push :
6+ workflow_dispatch :
7+
8+ jobs :
9+ pre-commit :
10+ # pull requests are a duplicate of a branch push if within the same repo.
11+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
12+
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : actions/setup-python@v4
17+ -
uses :
pre-commit/[email protected] 18+ with :
19+ extra_args : --all-files
You can’t perform that action at this time.
0 commit comments