Skip to content

Commit

Permalink
working better
Browse files Browse the repository at this point in the history
now just need to add a job
  • Loading branch information
mike dupont committed Oct 11, 2023
1 parent f8b0a6c commit 3e99482
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 9 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: test
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_1: ${{ secrets.PAT }}
DOCKERTEST: ${{ secrets.DOCKER }}
run: echo pat ${{ secrets.PAT }} docker ${{ secrets.DOCKER }} and test1 ${DOCKERTEST} and $GITHUB_1
- name: test2
env:
GITHUB_PAT: ${{ secrets.PAT }}
run: docker-compose -e GIHUB_PAT="${{ secrets.PAT }}" up
24 changes: 22 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
#"3.10",
"3.x"]
steps:


- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@master
Expand All @@ -36,12 +38,30 @@ jobs:
python -m pip install --upgrade pip
#python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install podman-compose
#- name: Lint with flake8
# run: |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Docker Compose Action
uses: meta-introspector/compose-action@main
- name: Docker Compose Action build
#uses: meta-introspector/compose-action@main
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: docker-compose build

- name: Docker Compose Action echo
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: echo pat ${{ secrets.PAT }}
# run: echo docker-compose up -e GITHUB_PAT=${{ secrets.PAT }} -e GITHUB_REPO="jmikedupont2/ai-ticket"

- name: Docker Compose Action do it
#uses: meta-introspector/compose-action@main
env:
GITHUB_PAT: ${{ secrets.PAT }}
GITHUB_REPO: "jmikedupont2/ai-ticket"
run: |
GITHUB_PAT=${{ secrets.PAT }} GITHUB_REPO="jmikedupont2/ai-ticket" docker-compose up
4 changes: 4 additions & 0 deletions .secrets.example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GITHUB_TOKEN=
GITHUB_PAT=
PAT=this isused
DOCKER=
10 changes: 3 additions & 7 deletions runact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@

# git clone https://github.com/moovweb/gvm
# cd gvm/ &&./autogen.sh && make install

act \
-s GITHUB_TOKEN=`cat github_pat.txt` \
-s GITHUB_PAT=`cat github_pat.txt` \
-s DOCKER=`cat dckr_pat_.txt` \
-P ubuntu-latest=localhost/my_local_act \
--verbose \
# use .secrets PAT And DOCKER
act -P ubuntu-latest=localhost/my_local_act \
--verbose \
--job python-package-build

# --pull=false \

0 comments on commit 3e99482

Please sign in to comment.