Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Aug 19, 2024
2 parents b63ff66 + 2006536 commit 9ec8d60
Show file tree
Hide file tree
Showing 414 changed files with 10,004 additions and 2,264 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.11'
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SELENIUM_CHROMEDRIVER_PATH: /usr/bin/chromedriver


docker-build:
needs: unittest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Build docker
run: docker build . --tag ${{ env.IMAGE_NAME }}

Expand All @@ -58,10 +61,10 @@ jobs:
needs: docker-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Build docker
run: docker build . --tag ${{ env.IMAGE_NAME }}
- name: Run tests in docker
Expand All @@ -81,7 +84,7 @@ jobs:
needs: unittest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Upload to pypi
run: /bin/bash upload.sh --github
Expand All @@ -95,7 +98,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/python310.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 3.10

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: theshellland/automonisaur

PKG: automon
PYPI: automonisaur
TWINE_REPOSITORY: https://upload.pypi.org/legacy/
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}


jobs:

unittest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
44 changes: 44 additions & 0 deletions .github/workflows/python311.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 3.11

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: theshellland/automonisaur

PKG: automon
PYPI: automonisaur
TWINE_REPOSITORY: https://upload.pypi.org/legacy/
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}


jobs:

unittest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
44 changes: 44 additions & 0 deletions .github/workflows/python312.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 3.12

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: theshellland/automonisaur

PKG: automon
PYPI: automonisaur
TWINE_REPOSITORY: https://upload.pypi.org/legacy/
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}


jobs:

unittest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
14 changes: 9 additions & 5 deletions .github/workflows/python36.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: 3.6
name: 3.6 EOL

on:
push:
branches: [ 3.6 ]
branches: [ 'none' ]
pull_request:
branches: [ 'none' ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -23,17 +25,19 @@ env:
jobs:

unittest:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/python37.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 3.7
name: 3.7 EOL

on:
push:
branches: [ '*' ]
branches: [ 'none' ]
pull_request:
branches: [ '*' ]
branches: [ 'none' ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -28,14 +28,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/python38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: 3.8

on:
push:
branches: [ '*' ]
branches: [ 'none' ]
pull_request:
branches: [ '*' ]
branches: [ 'none' ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -28,14 +28,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/python39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: 3.9

on:
push:
branches: [ '*' ]
branches: [ 'none' ]
pull_request:
branches: [ '*' ]
branches: [ 'none' ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -28,14 +28,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install python packages
run: pip3 install -r requirements.txt
- name: install chrome and chromedriver
run: /bin/bash docker/install.sh
- name: Run tests
run: /bin/bash test.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pypi requirements
FROM python:3 as builder
FROM python:3.11 as builder
RUN python3 -m pip install --upgrade pip setuptools wheel twine
RUN apt update && apt install -y vim
COPY requirements.txt .
Expand Down
Loading

0 comments on commit 9ec8d60

Please sign in to comment.