-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from svalinn/first_ci_test
add normal test for CI
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Regular CI testing for parastell | ||
|
||
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: | ||
paths-ignore: | ||
- 'Dockerfile' | ||
- '.github/workflows/docker_publish.yml' | ||
- 'environment.yml' | ||
|
||
jobs: | ||
test-dependency-img: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/svalinn/parastell-ci | ||
|
||
name: Perform CI Tests | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Populate environment and run tests | ||
run: | | ||
. /opt/etc/bashrc | ||
sed -e "s/@SERVER@/${rlmSERVER}/" -e "s/@PASSWORD@/${rlmPASSWD}/" /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.in > /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.lic | ||
export PYTHONPATH=${PYTHONPATH}:`pwd` | ||
cd tests | ||
pytest -v . | ||
env: | ||
rlmSERVER: ${{ secrets.RLMSERVER }} | ||
rlmPASSWD: ${{ secrets.RLMPASSWORD }} |