-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ac3feee
Showing
328 changed files
with
2,190 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Lint | ||
|
||
on: workflow_call | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 | ||
- name: Run linters | ||
run: flake8 . |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Main branch pipeline | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
secrets: inherit | ||
lint: | ||
uses: ./.github/workflows/lint.yml | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# .github/workflows/release.yml | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-release: | ||
name: Build artifacts | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker.io/batonogov/pyinstaller-linux:latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build package | ||
run: | | ||
echo "Creating Linux artifact" | ||
apt-get update && apt-get install -y zip | ||
pip install -r ./requirements.txt | ||
pyinstaller --onefile ./src/app.py | ||
mkdir -p .artie && \ | ||
cp -r ./dist/app ./assets ./config.json ./Artie\ Scraper.sh .artie | ||
zip -r Artie.zip .artie | ||
- name: Get HEAD commit hash | ||
id: get_commit | ||
run: echo "::set-output name=commit_hash::$(git rev-parse HEAD)" | ||
|
||
- name: Upload Artie.zip | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artie | ||
path: Artie.zip | ||
|
||
- name: Generate release tag | ||
id: tag | ||
run: | | ||
echo "::set-output name=release_tag::Artie_$(date +"%Y.%m.%d_%H-%M")" | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: ./src/Artie.zip | ||
tag_name: ${{ steps.tag.outputs.release_tag }} | ||
target_commitish: ${{ steps.get_commit.outputs.commit_hash }} | ||
release_name: Release ${{ steps.get_commit.outputs.commit_hash }} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
__pycache__ | ||
roms | ||
dist | ||
build | ||
app.spec | ||
.DS_Store | ||
build.sh |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
progdir=$( | ||
cd $(dirname "$0") | ||
pwd | ||
) | ||
|
||
program=./${progdir}/.artie/artie | ||
log_file="${progdir}/artie/log.txt" | ||
|
||
$program >"$log_file" 2>&1 |
Oops, something went wrong.