File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches :
9
9
- main
10
+ workflow_dispatch :
10
11
11
12
jobs :
12
13
build :
15
16
steps :
16
17
- run : sudo apt-get install -y ruby-bundler
17
18
name : Install prerequisites
18
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v4
19
20
- run : bundle install
20
21
name : Install bundle
21
22
- run : bundle exec jekyll build
Original file line number Diff line number Diff line change 9
9
- main
10
10
schedule :
11
11
- cron : " 0 7 * * 1"
12
+ workflow_dispatch :
12
13
13
14
jobs :
14
15
run-tests :
15
16
name : Run tests
16
17
runs-on : ubuntu-latest
17
18
container : dolfinx/dolfinx:stable
18
19
steps :
19
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
20
21
- run : pip3 install pytest flake8
21
22
name : Install pytest and flake8
22
23
- run : pip3 install -r _test/requirements.txt
25
26
name : Run flake8 on tests
26
27
- run : flake8 _tools/
27
28
name : Run flake8 on tools
28
- - run : GITHUB_TOKEN=${{ secrets.symfembot_token }} python3 -m pytest _test/ --has-fenicsx 1
29
+ - run : |
30
+ TOKEN=${{ secrets.symfembot_token }}
31
+ if [ -n "${TOKEN}" ]; then
32
+ echo "token=${TOKEN}" >> ${GITHUB_OUTPUT}
33
+ else
34
+ echo "token=${{ github.token }}" >> ${GITHUB_OUTPUT}
35
+ fi
36
+ shell: bash
37
+ name: Determine which token to use when running tests
38
+ id: token
39
+ - run : GITHUB_TOKEN=${{ steps.token.outputs.token }} python3 -m pytest _test/ --has-fenicsx 1
29
40
name : Run tests
You can’t perform that action at this time.
0 commit comments