Skip to content

Commit

Permalink
fix: Use correct token for publishing packages (#1139)
Browse files Browse the repository at this point in the history
* use personal github token to checkout

Signed-off-by: Niket <niket.shah1@ocado.com>

* run action on push

Signed-off-by: Niket <niket.shah1@ocado.com>

* remove condition

Signed-off-by: Niket <niket.shah1@ocado.com>

* try persist-credentials false

Signed-off-by: Niket <niket.shah1@ocado.com>

* fix: Stop CI from running again

Signed-off-by: Niket <niket.shah1@ocado.com>

* Remove debug workflow trigger

Signed-off-by: Niket <niket.shah1@ocado.com>

* Merge branch 'master' into github_actions_publish
  • Loading branch information
mrniket authored Nov 27, 2020
1 parent b51f2c9 commit af711cc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@ name: CI
on:
push:
branches:
- master
- master
pull_request:
jobs:
build:
tests:
name: Run tests
if: ${{ github.event.pusher.name != 'actions-user' }}
runs-on: ubuntu-18.04
env:
LANG: C.UTF-8
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.6.7'
architecture: 'x64'
- name: Install pip requirements
run: |
pip install pipenv
pip install pytest-cov
pipenv install --dev --system
pip install -U git+https://github.com/ocadotechnology/codeforlife-portal.git#egg=codeforlife-portal #TODO: Remove as part of #688
- name: Collect static
run: python example_project/manage.py collectstatic --noinput
- name: Run tests
env:
SELENIUM_WEBDRIVER: chrome-headless
run: pytest --cov=. --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.6.7'
architecture: 'x64'
- name: Install pip requirements
run: |
pip install pipenv
pip install pytest-cov
pipenv install --dev --system
pip install -U git+https://github.com/ocadotechnology/codeforlife-portal.git#egg=codeforlife-portal #TODO: Remove as part of #688
- name: Collect static
run: python example_project/manage.py collectstatic --noinput
- name: Run tests
env:
SELENIUM_WEBDRIVER: chrome-headless
run: pytest --cov=. --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit af711cc

Please sign in to comment.