File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 # Trigger the workflow on push to the master branch
1717 push :
1818 branches :
19- - master
19+ - main
2020
2121jobs :
2222
Original file line number Diff line number Diff line change 55 types : [published]
66 push :
77 branches :
8- - master # Push events on master branch
8+ - main # Push events on master branch
99
1010jobs :
1111 deploy-devito :
Original file line number Diff line number Diff line change 1616 # but only for the master branch
1717 push :
1818 branches :
19- - master
19+ - main
2020 pull_request :
2121 branches :
22- - master
22+ - main
2323
2424jobs :
2525 build :
Original file line number Diff line number Diff line change 99 # but only for the master branch
1010 push :
1111 branches :
12- - master
12+ - main
1313 pull_request :
1414 branches :
15- - master
15+ - main
1616
1717jobs :
1818 tutorials :
Original file line number Diff line number Diff line change 99 # but only for the master branch
1010 push :
1111 branches :
12- - master
12+ - main
1313 pull_request :
1414 branches :
15- - master
15+ - main
1616
1717jobs :
1818 flake8 :
Original file line number Diff line number Diff line change 99 # but only for the master branch
1010 push :
1111 branches :
12- - master
12+ - main
1313 pull_request :
1414 branches :
15- - master
15+ - main
1616
1717jobs :
1818 test-mpi-basic :
Original file line number Diff line number Diff line change 99 # but only for the master branch
1010 push :
1111 branches :
12- - master
12+ - main
1313 pull_request :
1414 branches :
15- - master
15+ - main
1616
1717jobs :
1818 pytest :
Original file line number Diff line number Diff line change 1818 # but only for the master branch
1919 push :
2020 branches :
21- - master
21+ - main
2222 pull_request :
2323 branches :
24- - master
24+ - main
2525 # Push-button activation
2626 workflow_dispatch :
2727 inputs :
@@ -77,20 +77,18 @@ jobs:
7777 docker build . --rm --pull --file docker/Dockerfile.devito --tag ${{ matrix.name }} --build-arg base=${{ matrix.base }}
7878
7979 - name : Remove dangling layers
80- run : docker system prune -f
81-
82- - name : check codecov setup
8380 run : |
84- ci_env=`bash <(curl -s https://codecov.io/env)`
85- echo $ci_env
81+ docker system prune -f
82+ echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}" >> $GITHUB_ENV
8683
8784 - name : Test with pytest
8885 run : |
8986 # Remove all existing containers for safety
9087 docker ps -aq | xargs -r docker rm -f
9188 # Run tests
89+ ci_env=`bash <(curl -s https://codecov.io/env)`
9290 docker run ${{ matrix.flags }} ${{ matrix.name }} ${{ matrix.test_drive_cmd }}
93- docker run ${{ matrix.flags }} -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} ${{ matrix.name }} pytest --cov --cov-config=.coveragerc --cov-report=xml ${{ matrix.test_files }}
91+ docker run ${{ matrix.flags }} $ci_env -e CI=true ${{ matrix.name }} pytest --cov --cov-config=.coveragerc --cov-report=xml ${{ matrix.test_files }}
9492
9593 - name : Test examples
9694 run : |
Original file line number Diff line number Diff line change 44 push :
55 # branches to consider in the event; optional, defaults to all
66 branches :
7- - master
7+ - main
88
99jobs :
1010 update_release_draft :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Master triggers
33on :
44 push :
55 branches :
6- - master # Push events on master branch
6+ - main # Push events on master branch
77
88jobs :
99 build :
You can’t perform that action at this time.
0 commit comments