mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
actions take 106
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -9,6 +9,7 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: src
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_PYTHON_VERSION: "3.9.0"
|
BUILD_PYTHON_VERSION: "3.9.0"
|
||||||
@@ -104,7 +105,6 @@ jobs:
|
|||||||
- name: Set env variables for pre-compiled Python
|
- name: Set env variables for pre-compiled Python
|
||||||
if: matrix.goal == 'test'
|
if: matrix.goal == 'test'
|
||||||
run: |
|
run: |
|
||||||
cd src
|
|
||||||
export python=$(which python3)
|
export python=$(which python3)
|
||||||
export pip=$(which pip3)
|
export pip=$(which pip3)
|
||||||
export gam="${python} -m gam"
|
export gam="${python} -m gam"
|
||||||
@@ -119,7 +119,6 @@ jobs:
|
|||||||
if: matrix.goal != 'test' && steps.cache-primes.outputs.cache-hit != 'true'
|
if: matrix.goal != 'test' && steps.cache-primes.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
cd src
|
|
||||||
source travis/${GAMOS}-before-install.sh
|
source travis/${GAMOS}-before-install.sh
|
||||||
echo "python=$python" >> $GITHUB_ENV
|
echo "python=$python" >> $GITHUB_ENV
|
||||||
echo "pip=$pip" >> $GITHUB_ENV
|
echo "pip=$pip" >> $GITHUB_ENV
|
||||||
@@ -143,7 +142,6 @@ jobs:
|
|||||||
- name: Install pip requirements
|
- name: Install pip requirements
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
cd src
|
|
||||||
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U
|
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U
|
||||||
$pip install --upgrade -r requirements.txt
|
$pip install --upgrade -r requirements.txt
|
||||||
|
|
||||||
@@ -151,7 +149,6 @@ jobs:
|
|||||||
if: matrix.goal != 'test'
|
if: matrix.goal != 'test'
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
cd src
|
|
||||||
source travis/${GAMOS}-install.sh
|
source travis/${GAMOS}-install.sh
|
||||||
echo "gampath=$gampath" >> $GITHUB_ENV
|
echo "gampath=$gampath" >> $GITHUB_ENV
|
||||||
echo "gam=$gam" >> $GITHUB_ENV
|
echo "gam=$gam" >> $GITHUB_ENV
|
||||||
@@ -159,7 +156,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Basic Tests all jobs
|
- name: Basic Tests all jobs
|
||||||
run: |
|
run: |
|
||||||
cd src
|
|
||||||
echo -e "python: $python\npip: $pip\ngam: $gam\ngampath: $gampath\n"
|
echo -e "python: $python\npip: $pip\ngam: $gam\ngampath: $gampath\n"
|
||||||
$python -m unittest discover --start-directory ./ --pattern "*_test.py" --buffer
|
$python -m unittest discover --start-directory ./ --pattern "*_test.py" --buffer
|
||||||
touch "${gampath}/nobrowser.txt"
|
touch "${gampath}/nobrowser.txt"
|
||||||
@@ -168,7 +164,6 @@ jobs:
|
|||||||
- name: Basic Tests build jobs only
|
- name: Basic Tests build jobs only
|
||||||
if: matrix.goal != 'test'
|
if: matrix.goal != 'test'
|
||||||
run: |
|
run: |
|
||||||
cd src
|
|
||||||
export vline=$($gam version | grep "Python ")
|
export vline=$($gam version | grep "Python ")
|
||||||
export python_line=($vline)
|
export python_line=($vline)
|
||||||
export this_python=${python_line[1]}
|
export this_python=${python_line[1]}
|
||||||
@@ -184,8 +179,7 @@ jobs:
|
|||||||
env: # Or as an environment variable
|
env: # Or as an environment variable
|
||||||
PASSCODE: ${{ secrets.PASSCODE }}
|
PASSCODE: ${{ secrets.PASSCODE }}
|
||||||
run: |
|
run: |
|
||||||
source .github/actions/decrypt.sh .github/actions/creds.tar.gpg src/creds.tar
|
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.gpg creds.tar
|
||||||
cd src
|
|
||||||
export OAUTHFILE="oauth2.txt-gam-gha-${JID}"
|
export OAUTHFILE="oauth2.txt-gam-gha-${JID}"
|
||||||
$gam oauth info
|
$gam oauth info
|
||||||
$gam info user
|
$gam info user
|
||||||
|
|||||||
Reference in New Issue
Block a user