Skip to content

Commit

Permalink
Merge pull request wannier-developers#362 from jimustafa/gh-actions
Browse files Browse the repository at this point in the history
run workflows explicitly on Ubuntu 20.04 with `numprocs=2`
  • Loading branch information
giovannipizzi authored Mar 31, 2021
2 parents 513694b + 2183489 commit 2b9973c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ on:

jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]

build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
w90-binary-parallel: [ 'false', 'true' ]
Expand Down Expand Up @@ -59,3 +59,11 @@ jobs:
./.github/workflows/run_tests.sh
- name: compute coverage
uses: codecov/codecov-action@v1
- name: archive test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-results_parallel=${{ matrix.w90-binary-parallel }}
path: |
test-suite/tests/test*/test.err*
test-suite/tests/test*/test.out*
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ then
echo "**************************"
# I hardcode the numprocs to four, in case change it or set it as an ENV
# var in the .travis.yml
./run_tests --category=default --numprocs=4
./run_tests --category=default --numprocs=2
fi

0 comments on commit 2b9973c

Please sign in to comment.