Skip to content

Commit

Permalink
fix up docker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniouaa committed Apr 10, 2024
1 parent be4af9d commit 0cf6103
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 35 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,22 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Install python 3.7
- name: Install python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.11

- name: Install Poetry Action
uses: snok/install-poetry@v1.1.6
- name: Setup PDM
- uses: actions/checkout@v4
uses: pdm-project/setup-pdm@v4

- name: Install dependencies
run: |
poetry install
poetry -V
poetry run pytest -V
run: pdm install

- name: Run the tests
run: |
poetry run task test
poetry run coveralls --service=github
pdm run task test
pdm run coveralls --service=github
env:
KRYPTO_TOKEN: ${{ secrets.KRYPTO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
36 changes: 17 additions & 19 deletions .github/workflows/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ name: MyPy
on: [push]

jobs:
type-checking:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
type-checking:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Install python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Poetry Action
uses: snok/install-poetry@v1.1.6
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4

- name: Install dependencies
run: |
poetry install
poetry -V
poetry run mypy -V
- name: Install dependencies
run: pdm install

- name: Run the typechecking with mypy
run: |
poetry run task mypy
- name: Run the typechecking with mypy
run: |
pdm run task mypy
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM python:3.7
FROM python:3.11

ENV KRYPTO_TOKEN = $KRYPTO_TOKEN
ENV REPOINFO $GITHUB_REPOSITORY
ENV KRYPTO_TOKEN=$KRYPTO_TOKEN
ENV REPOINFO=$GITHUB_REPOSITORY

WORKDIR /krypto

RUN apt-get -y update && apt-get -y upgrade
RUN pip install poetry
RUN pip install pdm

COPY . /krypto

RUN poetry install
RUN poetry build
RUN pdm install
RUN pdm build
RUN pip install /krypto

LABEL "maintainer"="antoniouaa <antoniouaa@hotmail.com>"
Expand Down

0 comments on commit 0cf6103

Please sign in to comment.