Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to standard development mode #57

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e367a2d
feat: replace old tooling with a modern one
Dec 15, 2023
6b42d6a
test: make the original tests work with the new environment
Dec 25, 2023
5b792fb
Merge pull request #45 from ganwell/t/orig_tests_90b6
Dec 26, 2023
b89df7a
test: convert test_mirror_create to new test
Dec 26, 2023
90565d0
Merge pull request #47 from ganwell/t/test_mirror_create_5520
Dec 26, 2023
3368fd0
test: convert test_mirror_update to new test
Dec 26, 2023
b08d313
Merge pull request #48 from ganwell/t/test_mirror_update_fac1
Jan 2, 2024
7f5a507
test: add cov, flake8, mypy, black and isort
Jan 2, 2024
697c244
Merge pull request #49 from ganwell/t/coverage_mypy_6734
Jan 3, 2024
67d2557
test: move all mirror and snapshot tests
Jan 3, 2024
64cc54e
Merge pull request #50 from ganwell/t/more_tests_5c60
Jan 10, 2024
c308a9a
test: move puslish tests
Jan 10, 2024
26cfe4d
Merge pull request #51 from ganwell/t/publish_5b84
Jan 15, 2024
44fbaf3
test: move last test from aptly_test.py
Jan 16, 2024
a464151
test: remove aptly_test.py
Jan 16, 2024
135ac74
test: move hypthesis and support custom keyservers
Jan 16, 2024
f92c2f4
Merge pull request #52 from ganwell/t/more_tests_dcc1
Jan 16, 2024
efc73a7
chore: switch to tomli
Feb 23, 2024
752242a
chore: remove circular build target in Makefile (build -> build)
Feb 23, 2024
7ae885e
Merge pull request #54 from ganwell/chore-switch-to-tomli
Feb 23, 2024
54092b0
Merge pull request #53 from ganwell/chore-remove-circular-build-targe…
Feb 23, 2024
b4c9807
chore: add support for different architectures in docker build process
Feb 23, 2024
ce1fd8c
Merge pull request #55 from ganwell/chore-add-support-for-different-a…
Feb 23, 2024
ab527d0
chore: move code to new locations
Mar 2, 2024
6f64d4c
Merge pull request #56 from ganwell/chore-move-code-to-modules
Mar 3, 2024
3f72dd7
chore: enable CI for any jlf/* branch
Mar 3, 2024
aa82c4d
Merge pull request #61 from ganwell/jlf/chore-enable-ci-for-any-jlf-b…
Mar 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .aptly-bin/LICENSE

This file was deleted.

106 changes: 0 additions & 106 deletions .aptly-bin/README.rst

This file was deleted.

Binary file removed .aptly-bin/aptly
Binary file not shown.
10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Main branch

on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"

jobs:
cache:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Build container
uses: docker/build-push-action@v5
with:
context: compose
push: true
tags: ghcr.io/adfinis/pyaptly/cache:latest
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha
cache-to: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha,mode=max

test:
runs-on: ubuntu-latest
needs: [cache]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Build container
uses: docker/build-push-action@v5
with:
context: compose
push: false
load: true
tags: ghcr.io/adfinis/pyaptly/cache:latest
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha

- name: Run tests
run: |
make test
33 changes: 33 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pull requests

on:
pull_request:
branches:
- main
- 'jlf/*'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Build container
uses: docker/build-push-action@v5
with:
context: compose
push: false
load: true
tags: ghcr.io/adfinis/pyaptly/cache:latest
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha

- name: Run tests
run: |
make test
18 changes: 2 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
/pyaptly.egg-info
*.swp
*.pyc
.python-version
__pycache__
/.cache
/.hypothesis
/.coverage
/.vagrant
/build
/doc/_build
.hypothesis
/.deps
/.gnupg
/.aptly.conf
/.aptly
/.local
.work
/.dmypy.json
/.coverage
28 changes: 0 additions & 28 deletions .gitlab-ci.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

3 changes: 0 additions & 3 deletions .requirements.txt

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion HOW_TO_RELEASE.rst

This file was deleted.

6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
Loading
Loading