-
Notifications
You must be signed in to change notification settings - Fork 14
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 #389 from dls-controls/fix_ci
Changes to fix the Continuous Intergration workflow
- Loading branch information
Showing
6 changed files
with
46 additions
and
47 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 |
---|---|---|
|
@@ -14,23 +14,24 @@ on: | |
- cron: '0 8 * * MON' | ||
|
||
# Global environment | ||
env: | ||
# EPICS Base version for system block IOC | ||
EPICS_BASE_VER: R3.14.12.7 | ||
EPICS_BASE_DIR: epics_base | ||
# env: | ||
# # EPICS Base version for system block IOC | ||
# EPICS_BASE_VER: R3.14.12.7 | ||
# EPICS_BASE_DIR: epics_base | ||
|
||
|
||
# Jobs | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7"] | ||
pipenv: ["skip-lock"] # Use latest available dependencies | ||
python-version: ["3.7.2"] | ||
# pipenv: ["skip-lock"] # Use latest available dependencies | ||
# Extra job for publishing using Pipfile.lock | ||
include: | ||
- python-version: "3.7" | ||
- python-version: "3.7.2" | ||
pipenv: "deploy" | ||
publish: true | ||
|
||
|
@@ -56,23 +57,23 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Mr. Malcolm" | ||
- name: Cache EPICS Base | ||
uses: actions/cache@v2 | ||
id: epics-base-cache | ||
with: | ||
path: ${{ env.EPICS_BASE_DIR }} | ||
key: epics_base-${{ runner.os }}-${{ env.EPICS_BASE_VER }} | ||
# - name: Cache EPICS Base | ||
# uses: actions/cache@v2 | ||
# id: epics-base-cache | ||
# with: | ||
# path: ${{ env.EPICS_BASE_DIR }} | ||
# key: epics_base-${{ runner.os }}-${{ env.EPICS_BASE_VER }} | ||
|
||
- name: Install EPICS Base | ||
if: steps.epics-base-cache.outputs.cache-hit != 'true' | ||
run: | | ||
wget -nv https://github.com/epics-base/epics-base/archive/${EPICS_BASE_VER}.tar.gz | ||
tar -zxf ${EPICS_BASE_VER}.tar.gz | ||
mv epics-base-${EPICS_BASE_VER} ${EPICS_BASE_DIR} | ||
make -sj -C ${EPICS_BASE_DIR}/ | ||
# - name: Install EPICS Base | ||
# if: steps.epics-base-cache.outputs.cache-hit != 'true' | ||
# run: | | ||
# wget -nv https://github.com/epics-base/epics-base/archive/${EPICS_BASE_VER}.tar.gz | ||
# tar -zxf ${EPICS_BASE_VER}.tar.gz | ||
# mv epics-base-${EPICS_BASE_VER} ${EPICS_BASE_DIR} | ||
# make -isj -C ${EPICS_BASE_DIR}/ | ||
|
||
- name: Set EPICS Base path | ||
run: echo "EPICS_BASE=`pwd`/${EPICS_BASE_DIR}" >> $GITHUB_ENV | ||
# - name: Set EPICS Base path | ||
# run: echo "EPICS_BASE=`pwd`/${EPICS_BASE_DIR}" >> $GITHUB_ENV | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
|
@@ -97,12 +98,12 @@ jobs: | |
set -o pipefail | ||
pipenv run tests | ||
- name: Coverage | ||
if: matrix.publish | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true # optional (default = false) | ||
files: ./coverage.xml | ||
# - name: Coverage | ||
# if: matrix.publish | ||
# uses: codecov/codecov-action@v2 | ||
# with: | ||
# fail_ci_if_error: true # optional (default = false) | ||
# files: ./coverage.xml | ||
|
||
- name: Publish Sdist and Wheel to PyPI | ||
# Only once when on a tag | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -40,7 +40,6 @@ dev = | |
atomicwrites | ||
black | ||
coverage | ||
codecov | ||
doc8 | ||
flake8 | ||
isort | ||
|
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
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