forked from cyclus/cyclus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:cyclus/cyclus into seed_sim_init
- Loading branch information
Showing
5 changed files
with
115 additions
and
1 deletion.
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,53 @@ | ||
name: Build/Test for PR and collaborator push | ||
|
||
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: | ||
paths-ignore: | ||
- '.github/workflows/build_test_publish.yml' | ||
- '.github/workflows/changelog_test.yml' | ||
- 'docker/**' | ||
- 'doc/**' | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/build_test_publish.yml' | ||
- '.github/workflows/changelog_test.yml' | ||
- 'docker/**' | ||
- 'doc/**' | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ubuntu_versions : [ | ||
22.04, | ||
] | ||
pkg_mgr : [ | ||
apt, | ||
conda | ||
] | ||
|
||
container: | ||
image: ghcr.io/${{ github.repository_owner }}/cyclus_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/${{ matrix.pkg_mgr }}-deps | ||
|
||
steps: | ||
- name: Checkout and Build Cyclus | ||
uses: actions/checkout@v3 | ||
|
||
- name: Building Cyclus | ||
run: | | ||
python install.py -j 2 --build-type=Release --core-version 999999.999999 | ||
echo "PATH=${HOME}/.local/bin:$PATH" >> "$GITHUB_ENV" | ||
echo "LD_LIBRARY_PATH=${HOME}/.local/lib:${HOME}/.local/lib/cyclus:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" | ||
- name: Cyclus Unit Tests | ||
run: | | ||
cyclus_unit_tests | ||
- name: Cyclus Python Tests | ||
run: | | ||
cd tests && python -m pytest --ignore test_main.py |
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
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,53 @@ | ||
name: Publish Cyclus Release | ||
|
||
on: | ||
release: | ||
types: [published, created, edited] | ||
|
||
jobs: | ||
build-and-test-for-release: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ubuntu_versions : [ | ||
22.04, | ||
] | ||
pkg_mgr : [ | ||
apt, | ||
conda | ||
] | ||
|
||
name: Installing Dependencies, Building cyclus and running tests | ||
steps: | ||
- name: default environment | ||
run: | | ||
echo "tag-latest-on-default=false" >> "$GITHUB_ENV" | ||
- name: condition on trigger parameters | ||
if: ${{ github.repository_owner == 'cyclus' }} | ||
run: | | ||
echo "tag-latest-on-default=true" >> "$GITHUB_ENV" | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing Dependencies in Docker image | ||
uses: firehed/multistage-docker-build-action@v1 | ||
with: | ||
repository: ghcr.io/${{ github.repository_owner }}/cyclus_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}_${{ github.ref }} | ||
stages: ${{ matrix.pkg_mgr }}-deps, cyclus | ||
server-stage: cyclus-test | ||
quiet: false | ||
parallel: true | ||
tag-latest-on-default: ${{ env.tag-latest-on-default }} | ||
dockerfile: docker/Dockerfile | ||
build-args: pkg_mgr=${{ matrix.pkg_mgr }} |
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
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