add site-packages to pythonpath before running pytest #6
Workflow file for this run
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
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' | |
- 'docker/**' | |
- 'doc/**' | |
push: | |
paths-ignore: | |
- '.github/workflows/build_test_publish.yml' | |
- 'docker/**' | |
- 'doc/**' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ubuntu_versions : [ | |
# 20.04, | |
22.04, | |
] | |
pkg_mgr : [ | |
apt, | |
# conda, | |
] | |
cyclus_tag: [ | |
latest, | |
] | |
container: | |
image: ghcr.io/cyclus/cyclus_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cyclus:${{matrix.cyclus_tag}} | |
steps: | |
- name: Checkout Cycamore | |
uses: actions/checkout@v3 | |
- name: Build Cycamore | |
run: | | |
python install.py --prefix=/root/.local -j 2 --build-type=Release --core-version 99999.99999 | |
- name: Cycamore Unit Tests | |
run: | | |
cycamore_unit_tests | |
- name: Cycamore Python Tests | |
run: | | |
cd tests && PYTHONPATH=`python -m user --site` python -m pytest |