Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thunderstore-io/thunderstore-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f0316dc2d8e1defaf58f72d6ae78a047f01d3e75
Choose a base ref
..
head repository: thunderstore-io/thunderstore-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e7795b67f3b7db35ee400050fae162c9b3176035
Choose a head ref
Showing with 179 additions and 9 deletions.
  1. +38 −9 .github/workflows/test.yml
  2. +126 −0 poetry.lock
  3. +15 −0 pyproject.toml
47 changes: 38 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -26,17 +26,48 @@ jobs:
uses: ./.github/actions/get-node-version

pre-commit:
name: Code style check
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
with:
submodules: false
- name: Setup Python 3.8
id: setup-python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- uses: actions/setup-node@v2
with:
node-version: "14"
- name: Get node version
id: node-version
run: echo "::set-output name=node-version::$(node --version)"
- uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Cache poetry venv
id: cache-poetry
uses: actions/cache@v2
with:
path: .venv
key: "poetry-${{ runner.os }}-\
${{ steps.setup-python.outputs.python-version }}-\
${{ hashFiles('poetry.lock') }}"
restore-keys: |
poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- name: Install poetry dependencies
run: poetry install
- name: Cache pre-commit cache
uses: actions/cache@v2
with:
python-version: '3.8'
- name: Install pre-commit
run: pip install pre-commit
path: ~/.cache/pre-commit
key: "pre-commit-${{ runner.os }}-\
${{ steps.setup-python.outputs.python-version }}-\
${{ steps.node-version.outputs.node-version }}-\
${{ hashFiles('.pre-commit-config.yaml') }}"
- name: Run pre-commit
run: python -m pre-commit run --show-diff-on-failure --color=always --all-files
run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files

# TODO: Configure build secrets & re-enable
# build:
@@ -94,8 +125,6 @@ jobs:
run: yarn workspace @thunderstore/dapper-ts test
- name: Build @thunderstore/use-promise
run: yarn workspace @thunderstore/use-promise build
- name: Build @thunderstore/cyberstorm-nextjs
run: yarn workspace @thunderstore/cyberstorm-nextjs build
- name: Build @thunderstore/cyberstorm-remix
run: yarn workspace @thunderstore/cyberstorm-remix build

126 changes: 126 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "thunderstore-ui"
version = "0.1.0"
description = ""
authors = ["Oksamies <asko.soisalo@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.8"
pre-commit = "2.6.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"